This commit is contained in:
Araq 2015-01-10 23:52:05 +01:00
commit a41b62da97

View file

@ -48,6 +48,7 @@ proc dbError*(msg: string) {.noreturn.} =
raise e
proc dbQuote(s: string): string =
if s.isNil: return "NULL"
result = "'"
for c in items(s):
if c == '\'': add(result, "''")