Skip to content

Commit 87e4207

Browse files
fix: remove funcformat addition logic - PG13 FuncCall nodes without funcformat should not get one added
Co-Authored-By: Dan Lynch <[email protected]>
1 parent db90b54 commit 87e4207

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

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

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -155,21 +155,6 @@ export class V13ToV14Transformer {
155155
result.location = node.location;
156156
}
157157

158-
if (result.funcformat === undefined) {
159-
const hasPgCatalogPrefix = result.funcname &&
160-
Array.isArray(result.funcname) &&
161-
result.funcname.length >= 2 &&
162-
result.funcname[0] &&
163-
typeof result.funcname[0] === 'object' &&
164-
'String' in result.funcname[0] &&
165-
result.funcname[0].String.str === 'pg_catalog';
166-
167-
if (hasPgCatalogPrefix) {
168-
result.funcformat = "COERCE_SQL_SYNTAX";
169-
} else {
170-
result.funcformat = "COERCE_EXPLICIT_CALL";
171-
}
172-
}
173158

174159
return { FuncCall: result };
175160
}

0 commit comments

Comments
 (0)