mirror of
https://github.com/allankoechke/turso.git
synced 2026-11-30 11:12:58 +00:00
reset statement before executing
This commit is contained in:
@@ -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>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user