mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-18 15:55:05 +00:00
added support for bigint array type
This commit is contained in:
parent
796b8dfadc
commit
c731cd2844
@ -188,8 +188,8 @@ p.parseIntArray = p.parseStringArray = function(value) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (elementType == 0x17) {
|
||||
// int
|
||||
if ((elementType == 0x17) || (elementType == 0x14)) {
|
||||
// int/bigint
|
||||
var result = parseBits(value, length * 8, offset);
|
||||
offset += length * 8;
|
||||
return result;
|
||||
|
||||
@ -78,6 +78,7 @@ var buildDataRowMetadata = function(msg, converters, names) {
|
||||
converters[i] = parsers[format].parseStringArray;
|
||||
break;
|
||||
case 1007:
|
||||
case 1016:
|
||||
converters[i] = parsers[format].parseIntArray;
|
||||
break;
|
||||
default:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user