mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-24 18:34:34 +01:00
Merge 'sqlite3: Implement sqlite3_clear_bindings()' from Pekka Enberg
Closes #2759
This commit is contained in:
@@ -711,6 +711,18 @@ pub unsafe extern "C" fn sqlite3_bind_blob(
|
||||
SQLITE_OK
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn sqlite3_clear_bindings(stmt: *mut sqlite3_stmt) -> ffi::c_int {
|
||||
if stmt.is_null() {
|
||||
return SQLITE_MISUSE;
|
||||
}
|
||||
|
||||
let stmt_ref = &mut *stmt;
|
||||
stmt_ref.stmt.clear_bindings();
|
||||
|
||||
SQLITE_OK
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn sqlite3_column_type(
|
||||
stmt: *mut sqlite3_stmt,
|
||||
|
||||
Reference in New Issue
Block a user