Do not run tests for binary mode
This commit is contained in:
parent
fb499e4b3d
commit
a2d0ab286a
@ -150,23 +150,25 @@ test("timestampz round trip", function() {
|
|||||||
client.on('drain', client.end.bind(client));
|
client.on('drain', client.end.bind(client));
|
||||||
});
|
});
|
||||||
|
|
||||||
test('early AD date', function() {
|
if(!helper.config.binary) {
|
||||||
var client = helper.client();
|
test('early AD & BC date', function() {
|
||||||
client.on('error', function(err) {
|
var client = helper.client();
|
||||||
console.log(err);
|
client.on('error', function(err) {
|
||||||
client.end();
|
console.log(err);
|
||||||
});
|
client.end();
|
||||||
|
});
|
||||||
|
|
||||||
client.query('SELECT $1::TIMESTAMPTZ as when', ["0062-03-08 14:32:00"], assert.success(function(res) {
|
client.query('SELECT $1::TIMESTAMPTZ as when', ["0062-03-08 14:32:00"], assert.success(function(res) {
|
||||||
assert.equal(res.rows[0].when.getFullYear(), 62);
|
assert.equal(res.rows[0].when.getFullYear(), 62);
|
||||||
}))
|
}))
|
||||||
|
|
||||||
client.query('SELECT $1::TIMESTAMPTZ as when', ["0062-03-08 14:32:00 BC"], assert.success(function(res) {
|
client.query('SELECT $1::TIMESTAMPTZ as when', ["0062-03-08 14:32:00 BC"], assert.success(function(res) {
|
||||||
assert.equal(res.rows[0].when.getFullYear(), -62);
|
assert.equal(res.rows[0].when.getFullYear(), -62);
|
||||||
}))
|
}))
|
||||||
|
|
||||||
client.on('drain', client.end.bind(client));
|
client.on('drain', client.end.bind(client));
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
|
||||||
helper.pg.connect(helper.config, assert.calls(function(err, client, done) {
|
helper.pg.connect(helper.config, assert.calls(function(err, client, done) {
|
||||||
assert.isNull(err);
|
assert.isNull(err);
|
||||||
|
Loading…
Reference in New Issue
Block a user