Commit caaaad4
Handle double-paren grouping sets as Function tuple (#123)
When GROUPING SETS contains ((a,b,c)) with double parentheses, the inner
tuple should be output as Function tuple, not unwrapped. Use the Parenthesized
flag on tuple literals to detect double-paren cases.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 5deac6f commit caaaad4
File tree
2 files changed
+17
-6
lines changed- internal/explain
- parser/testdata/01883_grouping_sets_crash
2 files changed
+17
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
404 | | - | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
405 | 420 | | |
406 | 421 | | |
407 | 422 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
0 commit comments