Skip to content

Commit c017c08

Browse files
fix: explicitly build FuncCall result object to prevent funcformat field preservation
Co-Authored-By: Dan Lynch <[email protected]>
1 parent d36515f commit c017c08

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export class V13ToV14Transformer {
107107
}
108108

109109
FuncCall(node: PG13.FuncCall, context: TransformerContext): any {
110-
const result: any = { ...node };
110+
const result: any = {};
111111

112112
if (node.funcname !== undefined) {
113113
result.funcname = Array.isArray(node.funcname)
@@ -155,10 +155,6 @@ export class V13ToV14Transformer {
155155
result.location = node.location;
156156
}
157157

158-
if (result.funcformat !== undefined) {
159-
delete result.funcformat;
160-
}
161-
162158
return { FuncCall: result };
163159
}
164160

0 commit comments

Comments
 (0)