Skip to content

Commit acc09d8

Browse files
fix: add GrantStmt and RevokeStmt to allowedNodeTypes for objfuncargs creation - improves to 230/258 passing tests
Co-Authored-By: Dan Lynch <[email protected]>
1 parent de6f710 commit acc09d8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1820,7 +1820,7 @@ export class V13ToV14Transformer {
18201820
const excludedNodeTypes = [
18211821
'CreateOpClassStmt', 'CreateAggregateStmt', 'AlterAggregateStmt',
18221822
'CreateFunctionStmt', 'CreateStmt', 'CreateTypeStmt', 'CreateOpFamilyStmt',
1823-
'CreateOperatorStmt', 'GrantStmt', 'RevokeStmt'
1823+
'CreateOperatorStmt'
18241824
];
18251825

18261826
const path = context.path || [];
@@ -1874,6 +1874,7 @@ export class V13ToV14Transformer {
18741874
return false;
18751875
}
18761876

1877+
18771878
// Check if this is an operator context - operators should NOT get objfuncargs
18781879
const path = context.path || [];
18791880

@@ -1912,7 +1913,7 @@ export class V13ToV14Transformer {
19121913
const excludedNodeTypes = [
19131914
'CreateOpClassStmt', 'CreateAggregateStmt', 'AlterAggregateStmt',
19141915
'CreateFunctionStmt', 'CreateStmt', 'CreateTypeStmt', 'CreateOpFamilyStmt',
1915-
'CreateOperatorStmt', 'GrantStmt', 'RevokeStmt'
1916+
'CreateOperatorStmt'
19161917
];
19171918

19181919
for (const node of path) {
@@ -1931,7 +1932,7 @@ export class V13ToV14Transformer {
19311932
}
19321933

19331934
const allowedNodeTypes = [
1934-
'CommentStmt', 'AlterFunctionStmt', 'RenameStmt', 'AlterOwnerStmt', 'AlterObjectSchemaStmt', 'CreateCastStmt', 'AlterOpFamilyStmt', 'CreateOpClassItem'
1935+
'CommentStmt', 'AlterFunctionStmt', 'RenameStmt', 'AlterOwnerStmt', 'AlterObjectSchemaStmt', 'CreateCastStmt', 'AlterOpFamilyStmt', 'CreateOpClassItem', 'GrantStmt', 'RevokeStmt'
19351936
];
19361937

19371938
for (const node of path) {

0 commit comments

Comments
 (0)