make more tests green

This commit is contained in:
Andreas Rumpf 2018-08-14 21:15:03 +02:00
commit 94684488d6
5 changed files with 8 additions and 38 deletions

View file

@ -105,7 +105,6 @@ proc dbError*(db: DbConn) {.noreturn.} =
proc dbQuote*(s: string): string =
## DB quotes the string.
if s.isNil: return "NULL"
result = "'"
for c in items(s):
if c == '\'': add(result, "''")