summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMilos Negovanovic <milos.negovanovic@gmail.com>2014-10-21 15:56:00 +0100
committerMilos Negovanovic <milos.negovanovic@gmail.com>2014-10-21 15:56:00 +0100
commit2a203e5340654936e3bbe1c0ac392221d15c9aeb (patch)
treed384094255e133d31269dbdeec62a2ad6dcdc3bd
parent11a2cfb306e50d50eb5c9a35864f5dbbfdabe75f (diff)
downloadNim-2a203e5340654936e3bbe1c0ac392221d15c9aeb.tar.gz
Add comment.
-rw-r--r--lib/impure/db_postgres.nim3
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, "''")