diff --git a/lib/impure/db_mysql.nim b/lib/impure/db_mysql.nim index 1b79b35434..e1119ada6c 100644 --- a/lib/impure/db_mysql.nim +++ b/lib/impure/db_mysql.nim @@ -120,6 +120,7 @@ proc dbQuote*(s: string): string = result = "'" for c in items(s): if c == '\'': add(result, "''") + if c == '\\': add(result, "\\\\") else: add(result, c) add(result, '\'')