diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2011-08-17T14·17+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2011-08-17T14·17+0000 |
commit | a95ba4cdd9aa9f9c98928732dd26fba2757ade26 (patch) | |
tree | f680f2a04d4fb5b5a9da659cfad1cd30850e3a10 /scripts/NixManifest.pm.in | |
parent | da18b11b05b6196376d5387b879d28b8da20f734 (diff) |
* Use last_insert_id instead of sqlite_last_insert_rowid, which you're
not really supposed to use according to the DBD::SQLite docs, and fails on some systems (e.g. http://hydra.nixos.org/build/1246662).
Diffstat (limited to 'scripts/NixManifest.pm.in')
-rw-r--r-- | scripts/NixManifest.pm.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/NixManifest.pm.in b/scripts/NixManifest.pm.in index e1a0b97094be..d080dcee7478 100644 --- a/scripts/NixManifest.pm.in +++ b/scripts/NixManifest.pm.in @@ -301,7 +301,7 @@ EOF $dbh->do("insert into Manifests(path, timestamp) values (?, ?)", {}, $manifest, $timestamp); - our $id = $dbh->sqlite_last_insert_rowid(); + our $id = $dbh->last_insert_id("", "", "", ""); sub addNARToDB { my ($storePath, $narFile) = @_; |