Fix RawStatement#clear_bindings

This commit is contained in:
gwenn 2024-03-09 14:37:33 +01:00
parent def8e9460d
commit e4448b5647
2 changed files with 2 additions and 2 deletions

View File

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

View File

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