From 4ea64743cbac381b1afc53e1515cf7a93d018afe Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 15 Oct 2020 15:49:00 +0200 Subject: [PATCH] fixes #15560 (#15587) --- src/db_mysql.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/db_mysql.nim b/src/db_mysql.nim index c3bcee677b..82f27537c2 100644 --- a/src/db_mysql.nim +++ b/src/db_mysql.nim @@ -134,8 +134,7 @@ proc dbQuote*(s: string): string = of '\'': result.add "\\'" of '\\': result.add "\\\\" of '_': result.add "\\_" - of Letters+Digits: result.add c - else: result.add "\\" & $ord(c) + else: result.add c add(result, '\'') proc dbFormat(formatstr: SqlQuery, args: varargs[string]): string =