File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
packages/transform/src/transformers Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -453,7 +453,7 @@ export class V14ToV15Transformer {
453453 }
454454
455455 // AlterTableCmd context: SET STATISTICS with ival 0 or -1 -> empty Integer
456- if ( context . parentNodeTypes ?. includes ( 'AlterTableCmd' ) && ( node . ival === 0 || node . ival === - 1 ) ) {
456+ if ( context . parentNodeTypes ?. includes ( 'AlterTableCmd' ) && ! context . parentNodeTypes ?. includes ( 'DefineStmt' ) && ( node . ival === 0 || node . ival === - 1 ) ) {
457457 return { Integer : { } } ;
458458 }
459459
@@ -469,9 +469,6 @@ export class V14ToV15Transformer {
469469 return { Integer : { } } ;
470470 }
471471
472- if ( node . ival === - 1 && ! defElemName ) {
473- return { Integer : { } } ;
474- }
475472
476473 // DefineStmt args context: ival 0 should become empty Integer for aggregates
477474 if ( ! defElemName && node . ival === 0 ) {
You can’t perform that action at this time.
0 commit comments