diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-07-16 14:07:32 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-07-16 14:07:32 +0200 |
commit | 3f264916dbfe346a71fa4182c9037332ac54f9d9 (patch) | |
tree | 94819bfb342195743f63321ee22f516df8d1fd22 /src/libstore/local-store.cc | |
parent | 36a124260361ba8dfa43bf43a067dcc48064c93f (diff) | |
parent | 2d6d53bc87ef7468ad73431cf76123316f4c82bf (diff) |
Merge remote-tracking branch 'origin/flakes'
Diffstat (limited to 'src/libstore/local-store.cc')
-rw-r--r-- | src/libstore/local-store.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index b3f4b3f7d..d49d00d6d 100644 --- a/src/libstore/local-store.cc +++ b/src/libstore/local-store.cc @@ -594,7 +594,7 @@ uint64_t LocalStore::addValidPath(State & state, (concatStringsSep(" ", info.sigs), !info.sigs.empty()) (renderContentAddress(info.ca), (bool) info.ca) .exec(); - uint64_t id = sqlite3_last_insert_rowid(state.db); + uint64_t id = state.db.getLastInsertedRowId(); /* If this is a derivation, then store the derivation outputs in the database. This is useful for the garbage collector: it can |