mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
fix binaryParsers: oid is 32bit
This commit is contained in:
parent
f3c9a532e0
commit
09ee46da22
@ -230,7 +230,7 @@ var init = function(register) {
|
||||
register(20, parseInt64);
|
||||
register(21, parseInt16);
|
||||
register(23, parseInt32);
|
||||
register(26, parseInt64);
|
||||
register(26, parseInt32);
|
||||
register(1700, parseNumeric);
|
||||
register(700, parseFloat32);
|
||||
register(701, parseFloat64);
|
||||
|
||||
@ -191,7 +191,7 @@ test('typed results', function() {
|
||||
name: 'binary-oid',
|
||||
format: 'binary',
|
||||
dataTypeID: 26,
|
||||
actual: [0, 0, 0, 0, 0, 0, 0, 103],
|
||||
actual: [0, 0, 0, 103],
|
||||
expected: 103
|
||||
},{
|
||||
name: 'binary-numeric',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user