reset statement before executing

This commit is contained in:
pedrocarlo 2025-05-02 19:26:44 -03:00
parent 6096cfb3d8
commit 7cc190a12b
2 changed files with 5 additions and 0 deletions

View file

@ -153,6 +153,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 => (),
@ -263,6 +267,7 @@ impl Rows {
}
}
#[derive(Debug)]
pub struct Row {
values: Vec<limbo_core::OwnedValue>,
}

BIN
db.sqlite Normal file

Binary file not shown.