Commit c1ecb91
committed
Case statement in where condition is removed by magic parameters
For some reason, the case statement is removed from a where condition.
```
SELECT a FROM users u WHERE status = (CASE WHEN u.id = 1 THEN u.status_1 ELSE u.status_2 END)
=>
SELECT a FROM users u
```
This is a failing test showcasing the issue.1 parent 2de0175 commit c1ecb91
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
180 | 183 | | |
181 | 184 | | |
182 | 185 | | |
| |||
0 commit comments