diff --git a/bindings/rust/src/lib.rs b/bindings/rust/src/lib.rs index 6c04c231a..e537932c4 100644 --- a/bindings/rust/src/lib.rs +++ b/bindings/rust/src/lib.rs @@ -161,6 +161,10 @@ impl Statement { } pub async fn execute(&mut self, params: impl IntoParams) -> Result { + { + // Reset the statement before executing + self.inner.lock().unwrap().reset(); + } let params = params.into_params()?; match params { params::Params::None => (), @@ -279,6 +283,7 @@ impl Rows { } } +#[derive(Debug)] pub struct Row { values: Vec, } diff --git a/db.sqlite b/db.sqlite new file mode 100644 index 000000000..a7582c3c9 Binary files /dev/null and b/db.sqlite differ