From 7cc190a12b37de55559c2fa629206c1b1b0bf219 Mon Sep 17 00:00:00 2001 From: pedrocarlo Date: Fri, 2 May 2025 19:26:44 -0300 Subject: [PATCH] reset statement before executing --- bindings/rust/src/lib.rs | 5 +++++ db.sqlite | Bin 0 -> 4096 bytes 2 files changed, 5 insertions(+) create mode 100644 db.sqlite 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 0000000000000000000000000000000000000000..a7582c3c97f3b7989dfc514a25271a8d1051e5d1 GIT binary patch literal 4096 zcmWFz^vNtqRY=P(%1ta$FlG>7U}9o$P*7lCU|@t|AO#03K;bV?9!MTP(5s7J0AgN{ wDgpdTM`cGtU^E0qLtr!nMnhmU1V%$(Gz3ONU^E0qLtr!nMnhmU1ZWom02k^A