Support querying tables with column names with multiple apostrophes (issue #934). Includes integration test.
parent
99a0dce688
commit
02c47f5071
@ -0,0 +1,13 @@
|
||||
var helper = require(__dirname + '/../test-helper');
|
||||
var pg = helper.pg;
|
||||
|
||||
test('support for complex column names', function() {
|
||||
pg.connect(helper.config, assert.success(function(client, done) {
|
||||
client.query("CREATE TEMP TABLE t ( \"complex''column\" TEXT )");
|
||||
client.query('SELECT * FROM t', assert.success(function(res) {
|
||||
done();
|
||||
assert.strictEqual(res.fields[0].name, "complex''column");
|
||||
pg.end();
|
||||
}));
|
||||
}));
|
||||
});
|
Loading…
Reference in new issue