mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-07-07 12:35:00 +00:00
reset statement before executing
This commit is contained in:
parent
6096cfb3d8
commit
7cc190a12b
2 changed files with 5 additions and 0 deletions
|
@ -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
BIN
db.sqlite
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue