diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2020-10-15 15:49:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-15 15:49:00 +0200 |
commit | a43202ea57f49a3b49927f114669335a7d40dbb2 (patch) | |
tree | e180c2a3a9b15a5fe962b1cb8e66ede159a1f930 | |
parent | 4ef255b69d00d66e4554bad72fab1780578792f5 (diff) | |
download | Nim-a43202ea57f49a3b49927f114669335a7d40dbb2.tar.gz |
fixes #15560 (#15587)
-rw-r--r-- | lib/impure/db_mysql.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/impure/db_mysql.nim b/lib/impure/db_mysql.nim index c3bcee677..82f27537c 100644 --- a/lib/impure/db_mysql.nim +++ b/lib/impure/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 = |