Skip to content

Commit f7e81ed

Browse files
committed
added extra tests contributed by napa3um
1 parent 0ea77f4 commit f7e81ed

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/integration/client/type-coercion-tests.js

+12
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,15 @@ test("timestampz round trip", function() {
126126
client.on('drain', client.end.bind(client));
127127
});
128128

129+
helper.pg.connect(helper.connectionString(), assert.calls(function(err, client) {
130+
assert.isNull(err);
131+
client.query('select null as res;', assert.calls(function(err, res) {
132+
assert.isNull(err);
133+
assert.strictEqual(res.rows[0].res, null)
134+
}))
135+
client.query('select 7 <> $1 as res;',[null], function(err, res) {
136+
assert.isNull(err);
137+
assert.strictEqual(res.rows[0].res, null);
138+
client.end();
139+
})
140+
}))

0 commit comments

Comments
 (0)