mirror of
https://github.com/fluencelabs/sqlite-wasm-connector
synced 2025-06-20 10:36:31 +00:00
Reset the state after Cursor’s bind
This commit is contained in:
@ -11,6 +11,7 @@ pub struct Cursor<'l> {
|
||||
impl<'l> Cursor<'l> {
|
||||
/// Bind values to all parameters.
|
||||
pub fn bind(&mut self, values: &[Value]) -> Result<()> {
|
||||
self.state = None;
|
||||
try!(self.statement.reset());
|
||||
for (i, value) in values.iter().enumerate() {
|
||||
try!(self.statement.bind(i + 1, value));
|
||||
|
Reference in New Issue
Block a user