Skip to content

Commit c34d99d

Browse files
fix: preserve parameter names in FunctionParameter transformation
- Removed the logic that was removing parameter names in DropStmt contexts - Parameter names should be preserved in objfuncargs for PG14 - Still at 234/258 passing tests, investigating other failure categories Co-Authored-By: Dan Lynch <[email protected]>
1 parent 53a96cd commit c34d99d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,10 +1018,7 @@ export class V13ToV14Transformer {
10181018
const result: any = {};
10191019

10201020
if (node.name !== undefined) {
1021-
const isInDropContext = context.parentNodeTypes?.includes('DropStmt');
1022-
if (!isInDropContext) {
1023-
result.name = node.name;
1024-
}
1021+
result.name = node.name;
10251022
}
10261023

10271024
if (node.argType !== undefined) {

0 commit comments

Comments
 (0)