@@ -544,30 +544,6 @@ export class V15ToV16Transformer {
544544 result . ival = this . transform ( result . ival as any , context ) ;
545545 }
546546
547- if ( result . fval !== undefined ) {
548- result . fval = this . transform ( result . fval as any , context ) ;
549- }
550-
551- if ( result . boolval !== undefined ) {
552- result . boolval = this . transform ( result . boolval as any , context ) ;
553- }
554-
555- if ( result . sval !== undefined ) {
556- result . sval = this . transform ( result . sval as any , context ) ;
557- }
558-
559- if ( result . bsval !== undefined ) {
560- result . bsval = this . transform ( result . bsval as any , context ) ;
561- }
562-
563- if ( result . isnull !== undefined ) {
564- result . isnull = result . isnull ;
565- }
566-
567- if ( result . location !== undefined ) {
568- result . location = result . location ;
569- }
570-
571547 return { A_Const : result } ;
572548 }
573549
@@ -890,16 +866,12 @@ export class V15ToV16Transformer {
890866
891867 Integer ( node : PG15 . Integer , context : TransformerContext ) : any {
892868 const result : any = { ...node } ;
893-
894- // Handle case where PG15 produces empty Integer nodes that need different handling based on context
895- if ( Object . keys ( node ) . length === 0 ) {
896- if ( context . parentNodeTypes . includes ( 'TypeName' ) ) {
897- result . ival = - 1 ;
898- } else if ( context . parentNodeTypes . includes ( 'A_Const' ) ) {
899- result . ival = - 1 ;
900- }
869+
870+ // Handle case where PG15 produces empty Integer nodes for negative values in arrayBounds
871+ if ( Object . keys ( result ) . length === 0 ) {
872+ result . ival = - 1 ;
901873 }
902-
874+
903875 return { Integer : result } ;
904876 }
905877
0 commit comments