db_mysql.nim: Work around string nil comparison logic
This commit is contained in:
parent
395b7506cf
commit
582786d068
1 changed files with 1 additions and 1 deletions
|
|
@ -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]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue