Add comment.
This commit is contained in:
parent
11a2cfb306
commit
2a203e5340
1 changed files with 2 additions and 1 deletions
|
|
@ -48,7 +48,8 @@ proc dbError*(msg: string) {.noreturn.} =
|
|||
e.msg = msg
|
||||
raise e
|
||||
|
||||
proc dbQuote(s: string): string =
|
||||
proc dbQuote*(s: string): string =
|
||||
## DB quotes the string.
|
||||
result = "'"
|
||||
for c in items(s):
|
||||
if c == '\'': add(result, "''")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue