From cd4bfac0595a5902cdacf2141f8ad0be0686b2ed Mon Sep 17 00:00:00 2001 From: Nikita Sivukhin Date: Sun, 9 Feb 2025 23:31:18 +0400 Subject: [PATCH] fix quote functions --- core/vdbe/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/vdbe/mod.rs b/core/vdbe/mod.rs index 57a2726e9..37dc141ce 100644 --- a/core/vdbe/mod.rs +++ b/core/vdbe/mod.rs @@ -3103,6 +3103,9 @@ fn exec_quote(value: &OwnedValue) -> OwnedValue { for c in s.as_str().chars() { if c == '\0' { break; + } else if c == '\'' { + quoted.push('\''); + quoted.push(c); } else { quoted.push(c); }