Thanks for link mikra - this was new to me. The solution from 0.18.0 also 
inserts `NULL` when the arg is `nil` [1], I therefore didn't think, my approach 
would have any _new_ impact? The changes from 0.18.0->0.19.0 in postgres.db is 
a removal of a comment, and in db_postgres.db it's the removal of `nil` and 
`add(result, "NULL")`.

I have tried multiple test with `?`, but I haven't encountered any problems. Do 
you have a specific case in mind?

**[1]**
    
    
     # 
https://github.com/nim-lang/Nim/blob/v0.18.0/lib/impure/db_postgres.nim#L105-L112
          if c == '?':
            if args[a] == nil:
              add(result, "NULL")
            else:
              add(result, dbQuote(args[a]))
            inc(a)
          else:
            add(result, c)
    
    
    Run

Reply via email to