Skip to content

Commit f3fcf29

Browse files
committed
parens
1 parent cef9488 commit f3fcf29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/deparser/src/deparser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2261,7 +2261,7 @@ export class Deparser implements DeparserVisitor {
22612261
const cleanTypeName = typeName.replace('pg_catalog.', '');
22622262
// Wrap FuncCall arguments in parentheses to prevent operator precedence issues
22632263
if (isFunctionCall) {
2264-
return `(${arg})::${cleanTypeName}`;
2264+
return context.parens(`${arg}::${cleanTypeName}`);
22652265
}
22662266
return `${arg}::${cleanTypeName}`;
22672267
}

0 commit comments

Comments
 (0)