Commit 2ab8227
Fix CI: Allow FuncCall nodes to use :: syntax with parentheses
The original implementation allowed FuncCall nodes to use :: syntax (with
parentheses for precedence), but the initial refactoring incorrectly marked
them as needing CAST() syntax.
This fix updates argumentNeedsCastSyntax() to return false for FuncCall nodes,
allowing the existing FuncCall handling code to run and wrap them in parentheses.
Fixes snapshot test failures:
- pg-catalog.test.ts: (public.gen_random_uuid())::text
- misc-pretty.test.ts: (t.date AT TIME ZONE 'America/New_York')::text
All 657 tests now pass.
Co-Authored-By: Dan Lynch <[email protected]>1 parent 7365f32 commit 2ab8227
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2446 | 2446 | | |
2447 | 2447 | | |
2448 | 2448 | | |
| 2449 | + | |
| 2450 | + | |
| 2451 | + | |
| 2452 | + | |
| 2453 | + | |
2449 | 2454 | | |
2450 | 2455 | | |
2451 | 2456 | | |
| |||
0 commit comments