Skip to content

Commit 5adb96f

Browse files
committed
add failing test for brianc#103
1 parent 5e1df9a commit 5adb96f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/integration/client/array-tests.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,13 @@ test('parsing array results', function() {
5656
})
5757

5858
test('null value', function(){
59-
client.query("SELECT '{joe,null,bob}'::text[] as names", assert.success(function(result) {
59+
client.query("SELECT '{joe,null,bob,\"NULL\"}'::text[] as names", assert.success(function(result) {
6060
var names = result.rows[0].names;
61-
assert.lengthIs(names, 3);
61+
assert.lengthIs(names, 4);
6262
assert.equal(names[0], 'joe');
6363
assert.equal(names[1], null);
6464
assert.equal(names[2], 'bob');
65+
assert.equal(names[3], 'NULL');
6566
pg.end();
6667
}))
6768
})

0 commit comments

Comments
 (0)