Skip to content

Commit

Permalink
Add statement reset to libsql_reset_stmt C binding
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tvandinther committed Aug 31, 2024
1 parent 1d7fb16 commit 35e9af0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bindings/c/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,7 @@ pub unsafe extern "C" fn libsql_reset_stmt(
}
let stmt = stmt.get_ref_mut();
stmt.params.clear();
stmt.stmt.reset();
0
}

Expand Down

0 comments on commit 35e9af0

Please sign in to comment.