We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5fa1f79 + 25287f6 commit 803bd99Copy full SHA for 803bd99
1 file changed
packages/deparser/src/deparser.ts
@@ -2258,7 +2258,7 @@ export class Deparser implements DeparserVisitor {
2258
if (isSimpleArgument && (arg.includes('(') || arg.startsWith('-'))) {
2259
} else {
2260
const cleanTypeName = typeName.replace('pg_catalog.', '');
2261
- return `${arg}::${cleanTypeName}`;
+ return this.context.parens(`${arg}::${cleanTypeName}`);
2262
}
2263
2264
0 commit comments