forked from lix-project/lix
Probably fix SQLITE_BUSY errors
This commit is contained in:
parent
37a337bcec
commit
80da7a6375
2 changed files with 7 additions and 0 deletions
|
@ -73,6 +73,11 @@ SQLiteStmt::Use::Use(SQLiteStmt & stmt)
|
||||||
sqlite3_reset(stmt);
|
sqlite3_reset(stmt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SQLiteStmt::Use::~Use()
|
||||||
|
{
|
||||||
|
sqlite3_reset(stmt);
|
||||||
|
}
|
||||||
|
|
||||||
SQLiteStmt::Use & SQLiteStmt::Use::operator () (const std::string & value, bool notNull)
|
SQLiteStmt::Use & SQLiteStmt::Use::operator () (const std::string & value, bool notNull)
|
||||||
{
|
{
|
||||||
if (notNull) {
|
if (notNull) {
|
||||||
|
|
|
@ -40,6 +40,8 @@ struct SQLiteStmt
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
~Use();
|
||||||
|
|
||||||
/* Bind the next parameter. */
|
/* Bind the next parameter. */
|
||||||
Use & operator () (const std::string & value, bool notNull = true);
|
Use & operator () (const std::string & value, bool notNull = true);
|
||||||
Use & operator () (int64_t value, bool notNull = true);
|
Use & operator () (int64_t value, bool notNull = true);
|
||||||
|
|
Loading…
Reference in a new issue