diff options
author | Milos Negovanovic <milos.negovanovic@gmail.com> | 2014-10-21 15:56:00 +0100 |
---|---|---|
committer | Milos Negovanovic <milos.negovanovic@gmail.com> | 2014-10-21 15:56:00 +0100 |
commit | 2a203e5340654936e3bbe1c0ac392221d15c9aeb (patch) | |
tree | d384094255e133d31269dbdeec62a2ad6dcdc3bd | |
parent | 11a2cfb306e50d50eb5c9a35864f5dbbfdabe75f (diff) | |
download | Nim-2a203e5340654936e3bbe1c0ac392221d15c9aeb.tar.gz |
Add comment.
-rw-r--r-- | lib/impure/db_postgres.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/impure/db_postgres.nim b/lib/impure/db_postgres.nim index 67e769ed2..510cb8e45 100644 --- a/lib/impure/db_postgres.nim +++ b/lib/impure/db_postgres.nim @@ -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, "''") |