Expand dbQuote to handle backslashes
This commit is contained in:
parent
ee5a76fd9d
commit
c678ac3f33
1 changed files with 1 additions and 0 deletions
|
|
@ -120,6 +120,7 @@ proc dbQuote*(s: string): string =
|
||||||
result = "'"
|
result = "'"
|
||||||
for c in items(s):
|
for c in items(s):
|
||||||
if c == '\'': add(result, "''")
|
if c == '\'': add(result, "''")
|
||||||
|
if c == '\\': add(result, "\\\\")
|
||||||
else: add(result, c)
|
else: add(result, c)
|
||||||
add(result, '\'')
|
add(result, '\'')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue