Merge 'reset statement before executing in rust binding' from Pedro Muniz

Closes #1426

Closes #1436
This commit is contained in:
Jussi Saurio
2025-05-03 18:34:44 +03:00
2 changed files with 5 additions and 0 deletions

View File

@@ -161,6 +161,10 @@ impl Statement {
}
pub async fn execute(&mut self, params: impl IntoParams) -> Result<u64> {
{
// 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<limbo_core::OwnedValue>,
}

BIN
db.sqlite Normal file

Binary file not shown.