Probably fix SQLITE_BUSY errors

This commit is contained in:
Eelco Dolstra 2016-04-05 15:29:56 +02:00
parent 37a337bcec
commit 80da7a6375
2 changed files with 7 additions and 0 deletions

View file

@ -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) {

View file

@ -40,6 +40,8 @@ struct SQLiteStmt
public:
~Use();
/* Bind the next parameter. */
Use & operator () (const std::string & value, bool notNull = true);
Use & operator () (int64_t value, bool notNull = true);