diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-04-05T13·29+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-04-05T13·29+0200 |
commit | 80da7a637559aadb6544599adc9f5807188cb9e5 (patch) | |
tree | 3b3a493d5baf0a684be200607a99ece619b14e32 /src/libstore/sqlite.cc | |
parent | 37a337bceca1c4730753ec5765a9eacb9f8a9962 (diff) |
Probably fix SQLITE_BUSY errors
Diffstat (limited to 'src/libstore/sqlite.cc')
-rw-r--r-- | src/libstore/sqlite.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstore/sqlite.cc b/src/libstore/sqlite.cc index 77fbedd119c7..f93fa0857588 100644 --- a/src/libstore/sqlite.cc +++ b/src/libstore/sqlite.cc @@ -73,6 +73,11 @@ SQLiteStmt::Use::Use(SQLiteStmt & stmt) sqlite3_reset(stmt); } +SQLiteStmt::Use::~Use() +{ + sqlite3_reset(stmt); +} + SQLiteStmt::Use & SQLiteStmt::Use::operator () (const std::string & value, bool notNull) { if (notNull) { |