summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-06-04 12:20:56 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-06-04 12:20:56 +0200
commit582786d0684b76a5bab5faa54304b2873bdcff5e (patch)
tree37c736921b36e7b0014ced565c27ce06bb3d7355
parent395b7506cf62cb86f34430c1a034a127ce2ad392 (diff)
downloadNim-582786d0684b76a5bab5faa54304b2873bdcff5e.tar.gz
db_mysql.nim: Work around string nil comparison logic
-rw-r--r--lib/impure/db_mysql.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/impure/db_mysql.nim b/lib/impure/db_mysql.nim
index 3b461d2f6..ca0e29d11 100644
--- a/lib/impure/db_mysql.nim
+++ b/lib/impure/db_mysql.nim
@@ -128,7 +128,7 @@ proc dbFormat(formatstr: SqlQuery, args: varargs[string]): string =
   var a = 0
   for c in items(string(formatstr)):
     if c == '?':
-      if args[a] == nil:
+      if args[a].isNil:
         add(result, "NULL")
       else:
         add(result, dbQuote(args[a]))