File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -178,6 +178,16 @@ var parseBigInteger = function(val) {
178178 return val ;
179179} ;
180180
181+ var parseJsonArray = function ( val ) {
182+ var arr = parseStringArray ( val ) ;
183+
184+ if ( ! arr ) {
185+ return arr ;
186+ }
187+
188+ return arr . map ( function ( el ) { return JSON . parse ( el ) ; } ) ;
189+ } ;
190+
181191var init = function ( register ) {
182192 register ( 20 , parseBigInteger ) ; // int8
183193 register ( 21 , parseInteger ) ; // int2
@@ -202,6 +212,8 @@ var init = function(register) {
202212 register ( 1186 , parseInterval ) ;
203213 register ( 17 , parseByteA ) ;
204214 register ( 114 , JSON . parse . bind ( JSON ) ) ;
215+ register ( 199 , parseJsonArray ) ; // json[]
216+ register ( 2951 , parseStringArray ) ; // uuid[]
205217} ;
206218
207219module . exports = {
Original file line number Diff line number Diff line change 11{
22 "name" : " pg" ,
3- "version" : " 2.7.0 " ,
3+ "version" : " 2.7.1 " ,
44 "description" : " PostgreSQL client - pure javascript & libpq with the same API" ,
55 "keywords" : [
66 " postgres" ,
You can’t perform that action at this time.
0 commit comments