mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
tests: added test for binary timestamp
This commit is contained in:
parent
a8acf9a656
commit
727de59494
@ -189,6 +189,14 @@ test('typed results', function() {
|
||||
dataTypeID: 16,
|
||||
actual: null,
|
||||
expected: null
|
||||
},{
|
||||
name: 'binary-timestamp',
|
||||
format: 'binary',
|
||||
dataTypeID: 1184,
|
||||
actual: [0x00, 0x01, 0x36, 0xee, 0x3e, 0x66, 0x9f, 0xe0],
|
||||
expected: function(val) {
|
||||
assert.UTCDate(val, 2010, 9, 31, 20, 24, 13, 740);
|
||||
}
|
||||
},{
|
||||
name: 'binary-string',
|
||||
format: 'binary',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user