[core] Reset SQLite statements after use in order to release locks
This commit is contained in:
@@ -310,5 +310,10 @@ void Statement::reset() {
|
||||
sqlite3_reset(stmt);
|
||||
}
|
||||
|
||||
void Statement::clearBindings() {
|
||||
assert(stmt);
|
||||
sqlite3_clear_bindings(stmt);
|
||||
}
|
||||
|
||||
} // namespace sqlite
|
||||
} // namespace mapbox
|
||||
|
||||
Reference in New Issue
Block a user