We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a72bd5c commit 894c60eCopy full SHA for 894c60e
lib/client.js
@@ -284,7 +284,7 @@ Client.prototype.copyTo = function (text) {
284
285
Client.prototype.query = function(config, values, callback) {
286
//can take in strings, config object or query object
287
- var query = (config instanceof Query) ? config :
+ var query = (typeof config.submit == 'function') ? config :
288
new Query(config, values, callback);
289
if(this.binary && !query.binary) {
290
query.binary = true;
0 commit comments