We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4ac971 commit ca1a70cCopy full SHA for ca1a70c
libsql/src/local/rows.rs
@@ -82,6 +82,12 @@ impl AsRef<Statement> for Rows {
82
}
83
84
85
+impl Drop for Rows {
86
+ fn drop(&mut self) {
87
+ self.stmt.reset();
88
+ }
89
+}
90
+
91
pub struct RowsFuture {
92
pub(crate) conn: Connection,
93
pub(crate) sql: String,
libsql/src/local/statement.rs
@@ -53,6 +53,7 @@ impl Statement {
53
pub fn run(&self, params: &Params) -> Result<()> {
54
self.bind(params);
55
let err = self.inner.step();
56
+ self.inner.reset();
57
match err {
58
crate::ffi::SQLITE_DONE => Ok(()),
59
crate::ffi::SQLITE_ROW => Ok(()),
0 commit comments