Skip to content

Commit 65328a8

Browse files
fix: remove CreateOpClassItem from shouldPreserveObjfuncargs exclusion list to enable objfuncargs creation
Co-Authored-By: Dan Lynch <[email protected]>
1 parent 99d55d6 commit 65328a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1757,7 +1757,7 @@ export class V13ToV14Transformer {
17571757
}
17581758

17591759
const excludedNodeTypes = [
1760-
'CreateOpClassStmt', 'CreateOpClassItem', 'CreateAggregateStmt', 'AlterAggregateStmt',
1760+
'CreateOpClassStmt', 'CreateAggregateStmt', 'AlterAggregateStmt',
17611761
'CreateFunctionStmt', 'CreateStmt', 'CreateTypeStmt', 'CreateOpFamilyStmt',
17621762
'CreateOperatorStmt', 'GrantStmt', 'RevokeStmt'
17631763
];
@@ -1814,7 +1814,7 @@ export class V13ToV14Transformer {
18141814

18151815
const path = context.path || [];
18161816
const excludedNodeTypes = [
1817-
'CreateOpClassStmt', 'CreateOpClassItem', 'CreateAggregateStmt', 'AlterAggregateStmt',
1817+
'CreateOpClassStmt', 'CreateAggregateStmt', 'AlterAggregateStmt',
18181818
'CreateFunctionStmt', 'CreateStmt', 'CreateTypeStmt', 'CreateOpFamilyStmt',
18191819
'CreateOperatorStmt', 'GrantStmt', 'RevokeStmt'
18201820
];
@@ -1835,7 +1835,7 @@ export class V13ToV14Transformer {
18351835
}
18361836

18371837
const allowedNodeTypes = [
1838-
'CommentStmt', 'AlterFunctionStmt', 'AlterOwnerStmt', 'RenameStmt', 'AlterObjectSchemaStmt', 'CreateCastStmt', 'AlterOpFamilyStmt'
1838+
'CommentStmt', 'AlterFunctionStmt', 'AlterOwnerStmt', 'RenameStmt', 'AlterObjectSchemaStmt', 'CreateCastStmt', 'AlterOpFamilyStmt', 'CreateOpClassItem'
18391839
];
18401840

18411841
for (const node of path) {

0 commit comments

Comments
 (0)