mirror of
https://github.com/isar/rusqlite.git
synced 2025-04-02 04:12:59 +08:00
Fix RawStatement#clear_bindings
This commit is contained in:
parent
def8e9460d
commit
e4448b5647
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user