Merge 'sqlite3: Implement sqlite3_clear_bindings()' from Pekka Enberg

Closes #2759
This commit is contained in:
Pekka Enberg
2025-08-24 19:57:14 +03:00
committed by GitHub
4 changed files with 85 additions and 0 deletions

View File

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