Commit 3ff387f
Fix issue #217: Wrap FuncCall arguments in parentheses when using :: cast syntax
- Fixes operator precedence issues with double casts like CAST(...AS text)::date
- Wraps FuncCall arguments (e.g., AT TIME ZONE expressions) in parentheses
- Prevents :: operator from binding to wrong operand
- Refactored empty if block to pass lint checks
- Updated pg-catalog snapshot to reflect correct parenthesization
Co-Authored-By: Dan Lynch <[email protected]>1 parent 95ae97e commit 3ff387f
File tree
2 files changed
+2977
-2971
lines changed- packages/deparser
- __tests__/misc/__snapshots__
- src
2 files changed
+2977
-2971
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
0 commit comments