about summary refs log tree commit diff
path: root/scripts/NixManifest.pm.in
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2011-08-17T14·17+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2011-08-17T14·17+0000
commita95ba4cdd9aa9f9c98928732dd26fba2757ade26 (patch)
treef680f2a04d4fb5b5a9da659cfad1cd30850e3a10 /scripts/NixManifest.pm.in
parentda18b11b05b6196376d5387b879d28b8da20f734 (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.in2
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) = @_;