Add comment.
This commit is contained in:
parent
f5cd0a63ad
commit
11a2cfb306
1 changed files with 1 additions and 0 deletions
|
|
@ -58,6 +58,7 @@ when false:
|
||||||
discard mysql_stmt_close(stmt)
|
discard mysql_stmt_close(stmt)
|
||||||
|
|
||||||
proc dbQuote*(s: string): string =
|
proc dbQuote*(s: string): string =
|
||||||
|
## DB quotes the string.
|
||||||
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