From 25ffd4f01e52cfac22290a6ec1bfa41f71d2f5da Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Tue, 30 Sep 2025 20:17:34 +0300 Subject: [PATCH] core/vdbe: Don't clear parameters in Statement::reset() As per SQLite API, sqlite3_reset() does *not* clear bind parameters. Instead they're persistent across statement reset and only cleared with sqlite3_clear_bindings(). --- core/vdbe/mod.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/core/vdbe/mod.rs b/core/vdbe/mod.rs index 9ec7472ab..fa0521b2a 100644 --- a/core/vdbe/mod.rs +++ b/core/vdbe/mod.rs @@ -404,7 +404,6 @@ impl ProgramState { self.ended_coroutine.0 = [0; 4]; self.regex_cache.like.clear(); self.interrupted = false; - self.parameters.clear(); self.current_collation = None; #[cfg(feature = "json")] self.json_cache.clear();