mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-27 13:04:20 +01:00
sqlite3: Implement sqlite3_clear_bindings()
This commit is contained in:
@@ -702,6 +702,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