Skip to content

Commit 31566cf

Browse files
committed
fix failing array test - closes brianc#125
1 parent 9132075 commit 31566cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/integration/client/array-tests.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ test('parsing array results', function() {
6868
})
6969

7070
test('element containing quote char', function(){
71-
client.query("SELECT '{\"joe''\",jim'',\"bob\\\\\"\"}'::text[] as names", assert.success(function(result) {
71+
client.query("SELECT ARRAY['joe''', 'jim', 'bob\"'] AS names", assert.success(function(result) {
7272
var names = result.rows[0].names;
7373
assert.lengthIs(names, 3);
7474
assert.equal(names[0], 'joe\'');
75-
assert.equal(names[1], 'jim\'');
75+
assert.equal(names[1], 'jim');
7676
assert.equal(names[2], 'bob"');
7777
pg.end();
7878
}))

0 commit comments

Comments
 (0)