sqlite3: Implement sqlite3_clear_bindings()

This commit is contained in:
Pekka Enberg
2025-08-24 16:58:06 +03:00
parent a8ab049a36
commit 9d2f26bb04
4 changed files with 85 additions and 0 deletions

View File

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