We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f41265c commit d514dd8Copy full SHA for d514dd8
packages/pg-pool/index.js
@@ -402,7 +402,7 @@ class Pool extends EventEmitter {
402
return response.result
403
}
404
405
- // allow plain text query without values
+ // allow plain text query without values, but callback
406
if (typeof values === 'function') {
407
cb = values
408
values = undefined
packages/pg/lib/client.js
@@ -589,7 +589,7 @@ class Client extends EventEmitter {
589
throw err
590
})
591
} else {
592
- if (!(typeof values === 'function')) {
+ if (!(typeof query.callback === 'function')) {
593
throw new Error('callback is not a function')
594
595
0 commit comments