Comparing version 0.7.1 to 0.7.2
{ "name": "pg", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"description": "PostgreSQL client - pure javascript & libpq with the same API", | ||
@@ -4,0 +4,0 @@ "keywords" : ["postgres", "pg", "libpq", "postgre", "database", "rdbms"], |
@@ -71,7 +71,7 @@ var helper = require(__dirname + "/test-helper"); | ||
test('element containing quote char', function(){ | ||
client.query("SELECT '{\"joe''\",jim'',\"bob\\\\\"\"}'::text[] as names", assert.success(function(result) { | ||
client.query("SELECT ARRAY['joe''', 'jim', 'bob\"'] AS names", assert.success(function(result) { | ||
var names = result.rows[0].names; | ||
assert.lengthIs(names, 3); | ||
assert.equal(names[0], 'joe\''); | ||
assert.equal(names[1], 'jim\''); | ||
assert.equal(names[1], 'jim'); | ||
assert.equal(names[2], 'bob"'); | ||
@@ -78,0 +78,0 @@ pg.end(); |
Sorry, the diff of this file is not supported yet
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
218588
91
1