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); }