sticker/Database: always invoke sqlite3_reset() and sqlite3_clear_bindings()
This commit is contained in:
parent
12b4a666bc
commit
80ddf4aecf
|
@ -251,14 +251,14 @@ sticker_insert_value(const char *type, const char *uri,
|
||||||
if (!BindAll(stmt, type, uri, name, value))
|
if (!BindAll(stmt, type, uri, name, value))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (!ExecuteCommand(stmt))
|
bool success = ExecuteCommand(stmt);
|
||||||
return false;
|
|
||||||
|
|
||||||
sqlite3_reset(stmt);
|
sqlite3_reset(stmt);
|
||||||
sqlite3_clear_bindings(stmt);
|
sqlite3_clear_bindings(stmt);
|
||||||
|
|
||||||
idle_add(IDLE_STICKER);
|
if (success)
|
||||||
return true;
|
idle_add(IDLE_STICKER);
|
||||||
|
return success;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
|
Loading…
Reference in New Issue