Skip to content

Commit 09ee46d

Browse files
committed
fix binaryParsers: oid is 32bit
1 parent f3c9a53 commit 09ee46d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/binaryParsers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ var init = function(register) {
230230
register(20, parseInt64);
231231
register(21, parseInt16);
232232
register(23, parseInt32);
233-
register(26, parseInt64);
233+
register(26, parseInt32);
234234
register(1700, parseNumeric);
235235
register(700, parseFloat32);
236236
register(701, parseFloat64);

test/unit/client/typed-query-results-tests.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ test('typed results', function() {
191191
name: 'binary-oid',
192192
format: 'binary',
193193
dataTypeID: 26,
194-
actual: [0, 0, 0, 0, 0, 0, 0, 103],
194+
actual: [0, 0, 0, 103],
195195
expected: 103
196196
},{
197197
name: 'binary-numeric',

0 commit comments

Comments
 (0)