Browse Source

undef values should never be encoded

v4
Mathias Buus 5 years ago
parent
commit
df6579622a
  1. 2
      lib/query-stream.js

2
lib/query-stream.js

@ -22,7 +22,7 @@ class QueryStream extends Readable {
this.command = command
this.target = target
this.value = cmd ? cmd.inputEncoding.encode(value) : (value || null)
this.value = (cmd && value) ? cmd.inputEncoding.encode(value) : (value || null)
this.update = !!opts.update
this.query = !!opts.query || !opts.update
this.destroyed = false

Loading…
Cancel
Save