Skip to content

Commit 79cf4c9

Browse files
committed
reversing #181 that affected this file which we should not have
1 parent ad23f90 commit 79cf4c9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/transform/src/transformers/v14-to-v15.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ export class V14ToV15Transformer {
8282
transformedData[key] = value.map(item => {
8383
// In PG15, -1 values in arrayBounds are represented as empty Integer objects
8484
if (item && typeof item === 'object' && 'Integer' in item &&
85-
item.Integer && item.Integer.ival === -1 &&
86-
key === 'arrayBounds' && !context.parentNodeTypes?.includes('DefineStmt')) {
85+
item.Integer && item.Integer.ival === -1) {
8786
return { Integer: {} };
8887
}
8988
return this.transform(item as any, context);
@@ -117,8 +116,7 @@ export class V14ToV15Transformer {
117116
result[key] = value.map(item => {
118117
// In PG15, -1 values in arrayBounds are represented as empty Integer objects
119118
if (item && typeof item === 'object' && 'Integer' in item &&
120-
item.Integer && item.Integer.ival === -1 &&
121-
key === 'arrayBounds' && !context.parentNodeTypes?.includes('DefineStmt')) {
119+
item.Integer && item.Integer.ival === -1) {
122120
return { Integer: {} };
123121
}
124122
return this.transform(item as any, context);

0 commit comments

Comments
 (0)