#684138 by carlos8f and Heine: Fixed bug in SQLite's NextId() that prevented installation.

merge-requests/26/head
Angie Byron 2010-01-14 19:49:14 +00:00
parent dfebdecfa7
commit fed2d40473
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ class DatabaseConnection_sqlite extends DatabaseConnection {
}
// The transaction gets committed when the transaction object gets destroyed
// because it gets out of scope.
return $new_value;
return (int) $this->query('SELECT value FROM {sequences}')->fetchField();
}
}