We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cef9488 commit f3fcf29Copy full SHA for f3fcf29
packages/deparser/src/deparser.ts
@@ -2261,7 +2261,7 @@ export class Deparser implements DeparserVisitor {
2261
const cleanTypeName = typeName.replace('pg_catalog.', '');
2262
// Wrap FuncCall arguments in parentheses to prevent operator precedence issues
2263
if (isFunctionCall) {
2264
- return `(${arg})::${cleanTypeName}`;
+ return context.parens(`${arg}::${cleanTypeName}`);
2265
}
2266
return `${arg}::${cleanTypeName}`;
2267
0 commit comments