diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-06-04 12:20:56 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-06-04 12:20:56 +0200 |
commit | 582786d0684b76a5bab5faa54304b2873bdcff5e (patch) | |
tree | 37c736921b36e7b0014ced565c27ce06bb3d7355 | |
parent | 395b7506cf62cb86f34430c1a034a127ce2ad392 (diff) | |
download | Nim-582786d0684b76a5bab5faa54304b2873bdcff5e.tar.gz |
db_mysql.nim: Work around string nil comparison logic
-rw-r--r-- | lib/impure/db_mysql.nim | 2 |
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])) |