diff --git a/core/lib.rs b/core/lib.rs index afbcfa09b..d4818f3d7 100644 --- a/core/lib.rs +++ b/core/lib.rs @@ -2741,6 +2741,12 @@ impl Statement { } } +impl Drop for Statement { + fn drop(&mut self) { + self.reset(); + } +} + pub type Row = vdbe::Row; pub type StepResult = vdbe::StepResult;