Merge pull request #1465 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
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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