Skip to content

Commit 35e9af0

Browse files
committed
Add statement reset to libsql_reset_stmt C binding
Without this call to stmt.reset(), the prepared statement is not correctly reset and the same values are read back despite having new bindings. Fixes #1481
1 parent 1d7fb16 commit 35e9af0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bindings/c/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,7 @@ pub unsafe extern "C" fn libsql_reset_stmt(
627627
}
628628
let stmt = stmt.get_ref_mut();
629629
stmt.params.clear();
630+
stmt.stmt.reset();
630631
0
631632
}
632633

0 commit comments

Comments
 (0)