* 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).
This commit is contained in:
Eelco Dolstra 2011-08-17 14:17:19 +00:00
parent da18b11b05
commit a95ba4cdd9
1 changed files with 1 additions and 1 deletions

View File

@ -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) = @_;