From a3ca5f6bf26c22f9adc94e1bfe5382dce03a6fa7 Mon Sep 17 00:00:00 2001 From: Nikita Sivukhin Date: Mon, 6 Oct 2025 13:27:42 +0400 Subject: [PATCH] implement Drop for Statement --- core/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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;