Closed moufmouf closed 5 years ago
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.
Coverage increased (+0.06%) to 68.453% when pulling e1b88d44687f545cd65bf348c370a2ee71fcdf5e on moufmouf:case_in_where into 91dda2cc485900470085f50c65262a8ccd228d11 on thecodingmachine:1.3.
For some reason, the case statement is removed from a where condition.
This is a failing test showcasing the issue.