Skip to content

Commit d43321c

Browse files
committed
fix parens
1 parent f3fcf29 commit d43321c

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 context.parens(`${arg}::${cleanTypeName}`);
2264+
return `${context.parens(arg)}::${cleanTypeName}`;
22652265
}
22662266
return `${arg}::${cleanTypeName}`;
22672267
}

0 commit comments

Comments
 (0)