mirror of
https://github.com/hanzoai/sqlbuilder.git
synced 2026-10-01 00:37:42 +00:00
fix: sqlite single quote interpolations
This commit is contained in:
+3
-3
@@ -803,12 +803,12 @@ func quoteStringValue(buf []byte, s string, flavor Flavor) []byte {
|
||||
buf = append(buf, "\\Z"...)
|
||||
|
||||
case '\'':
|
||||
if flavor == CQL {
|
||||
switch flavor {
|
||||
case SQLite, CQL:
|
||||
buf = append(buf, "''"...)
|
||||
} else {
|
||||
default:
|
||||
buf = append(buf, "\\'"...)
|
||||
}
|
||||
|
||||
case '"':
|
||||
buf = append(buf, "\\\""...)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user