File tree 3 files changed +11
-0
lines changed
3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -230,4 +230,8 @@ p.parseText = function(value) {
230
230
return value . toString ( 'utf8' ) ;
231
231
} ;
232
232
233
+ p . parseBool = function ( value ) {
234
+ return ( parseBits ( value , 8 ) > 0 ) ;
235
+ } ;
236
+
233
237
module . exports = BinaryParser ;
Original file line number Diff line number Diff line change @@ -53,6 +53,9 @@ p.handleRowDescription = function(msg) {
53
53
var format = field . format ;
54
54
this . _fieldNames [ i ] = field . name ;
55
55
switch ( dataTypeId ) {
56
+ case 16 :
57
+ this . _fieldConverters [ i ] = parsers [ format ] . parseBool ;
58
+ break ;
56
59
case 20 :
57
60
this . _fieldConverters [ i ] = parsers [ format ] . parseInt64 ;
58
61
break ;
Original file line number Diff line number Diff line change @@ -84,4 +84,8 @@ p.parseText = function(value) {
84
84
return value ;
85
85
} ;
86
86
87
+ p . parseBool = function ( value ) {
88
+ return value == 't' ;
89
+ } ;
90
+
87
91
module . exports = TextParser ;
You can’t perform that action at this time.
0 commit comments