Commit 6ad7b56
Handle TernaryExpr with alias in WITH clause
Added case for TernaryExpr in explainWithElement to properly output
the alias from WITH clause. Ternary expressions (? :) become
Function if with the alias from the WITH element.
Fixes stmt1 in 03254_uniq_exact_two_level_negative_zero.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent f304b1d commit 6ad7b56
2 files changed
Lines changed: 12 additions & 5 deletions
File tree
- internal/explain
- parser/testdata/03254_uniq_exact_two_level_negative_zero
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1142 | 1142 | | |
1143 | 1143 | | |
1144 | 1144 | | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
1145 | 1156 | | |
1146 | 1157 | | |
1147 | 1158 | | |
| |||
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
0 commit comments