Skip to content

Commit 333d484

Browse files
fix: restore missing FunctionParameter and AlterFunctionStmt transformations to recover 125/258 baseline
Co-Authored-By: Dan Lynch <[email protected]>
1 parent 78627d0 commit 333d484

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ export class V13ToV14Transformer {
358358
return null;
359359
}
360360

361-
private getFuncformatValue(node: any, context: TransformerContext): string {
361+
private getFuncformatValue(node: any, context: TransformerContext): string {
362362
const funcname = this.getFunctionName(node);
363363

364364
if (!funcname) {
@@ -382,6 +382,7 @@ export class V13ToV14Transformer {
382382
}
383383

384384

385+
385386
FunctionParameter(node: PG13.FunctionParameter, context: TransformerContext): any {
386387
const result: any = {};
387388

@@ -404,8 +405,6 @@ export class V13ToV14Transformer {
404405
return { FunctionParameter: result };
405406
}
406407

407-
408-
409408
AlterFunctionStmt(node: PG13.AlterFunctionStmt, context: TransformerContext): any {
410409
const result: any = {};
411410

@@ -422,8 +421,6 @@ export class V13ToV14Transformer {
422421
funcData = funcResult.ObjectWithArgs;
423422
}
424423

425-
426-
427424
result.func = 'ObjectWithArgs' in funcResult ? { ObjectWithArgs: funcData } : funcData;
428425
} else {
429426
result.func = funcResult;

0 commit comments

Comments
 (0)