@@ -537,30 +537,6 @@ export class V15ToV16Transformer {
537537 result . ival = this . transform ( result . ival as any , context ) ;
538538 }
539539
540- if ( result . fval !== undefined ) {
541- result . fval = this . transform ( result . fval as any , context ) ;
542- }
543-
544- if ( result . boolval !== undefined ) {
545- result . boolval = this . transform ( result . boolval as any , context ) ;
546- }
547-
548- if ( result . sval !== undefined ) {
549- result . sval = this . transform ( result . sval as any , context ) ;
550- }
551-
552- if ( result . bsval !== undefined ) {
553- result . bsval = this . transform ( result . bsval as any , context ) ;
554- }
555-
556- if ( result . isnull !== undefined ) {
557- result . isnull = result . isnull ;
558- }
559-
560- if ( result . location !== undefined ) {
561- result . location = result . location ;
562- }
563-
564540 return { A_Const : result } ;
565541 }
566542
@@ -883,16 +859,12 @@ export class V15ToV16Transformer {
883859
884860 Integer ( node : PG15 . Integer , context : TransformerContext ) : any {
885861 const result : any = { ...node } ;
886-
887- // Handle case where PG15 produces empty Integer nodes that need different handling based on context
888- if ( Object . keys ( node ) . length === 0 ) {
889- if ( context . parentNodeTypes . includes ( 'TypeName' ) ) {
890- result . ival = - 1 ;
891- } else if ( context . parentNodeTypes . includes ( 'A_Const' ) ) {
892- result . ival = - 1 ;
893- }
862+
863+ // Handle case where PG15 produces empty Integer nodes for negative values in arrayBounds
864+ if ( Object . keys ( result ) . length === 0 ) {
865+ result . ival = - 1 ;
894866 }
895-
867+
896868 return { Integer : result } ;
897869 }
898870
0 commit comments