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 e6e643a commit 9281ff9Copy full SHA for 9281ff9
test/integration/client/api-tests.js
@@ -64,3 +64,12 @@ test('raises error if cannot connect', function() {
64
assert.ok(err, 'should have raised an error')
65
}))
66
})
67
+
68
+test("query errors are handled and do not bubble if callbac is provded", function() {
69
+ pg.connect(connectionString, assert.calls(function(err, client) {
70
+ assert.isNull(err)
71
+ client.query("SELECT OISDJF FROM LEIWLISEJLSE", assert.calls(function(err, result) {
72
+ assert.ok(err);
73
+ }))
74
75
+})
0 commit comments