fixes #1866
This commit is contained in:
parent
27141f6016
commit
a41b62da97
1 changed files with 2 additions and 1 deletions
|
|
@ -48,6 +48,7 @@ proc dbError*(msg: string) {.noreturn.} =
|
||||||
raise e
|
raise e
|
||||||
|
|
||||||
proc dbQuote(s: string): string =
|
proc dbQuote(s: string): string =
|
||||||
|
if s.isNil: return "NULL"
|
||||||
result = "'"
|
result = "'"
|
||||||
for c in items(s):
|
for c in items(s):
|
||||||
if c == '\'': add(result, "''")
|
if c == '\'': add(result, "''")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue