3
0
mirror of https://github.com/isar/rusqlite.git synced 2025-03-31 19:12:58 +08:00

Merge pull request from gwenn/clear_bindings

Fix RawStatement#clear_bindings
This commit is contained in:
gwenn 2024-03-09 18:37:59 +01:00 committed by GitHub
commit f36a904b77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

@ -153,7 +153,7 @@ impl StatementCache {
}
// Return a statement to the cache.
fn cache_stmt(&self, stmt: RawStatement) {
fn cache_stmt(&self, mut stmt: RawStatement) {
if stmt.is_null() {
return;
}

@ -169,7 +169,7 @@ impl RawStatement {
}
#[inline]
pub fn clear_bindings(&self) {
pub fn clear_bindings(&mut self) {
unsafe {
ffi::sqlite3_clear_bindings(self.ptr);
} // rc is always SQLITE_OK