diff --git a/bindings/rust/src/lib.rs b/bindings/rust/src/lib.rs index 8c57e7909..955f069af 100644 --- a/bindings/rust/src/lib.rs +++ b/bindings/rust/src/lib.rs @@ -153,6 +153,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 => (), @@ -263,6 +267,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