mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
fix recognition of query format for empty queries in dictionary format
queries like {text: ""} did not get recognized correctly before and
get converted to {text: {text: ""}}
This commit is contained in:
parent
09ee46da22
commit
5d8c8bbcdc
@ -172,7 +172,7 @@ p._pulseQueryQueue = function() {
|
||||
|
||||
p.query = function(config, values, callback) {
|
||||
//can take in strings or config objects
|
||||
config = (config.text || config.name) ? config : { text: config };
|
||||
config = (typeof(config) == 'string') ? { text: config } : config;
|
||||
|
||||
if(values) {
|
||||
if(typeof values === 'function') {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user