From a95ba4cdd9aa9f9c98928732dd26fba2757ade26 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 17 Aug 2011 14:17:19 +0000 Subject: [PATCH] * 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). --- scripts/NixManifest.pm.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/NixManifest.pm.in b/scripts/NixManifest.pm.in index e1a0b9709..d080dcee7 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) = @_;