Skip to content

Conversation

moufmouf
Copy link
Member

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.

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.
@coveralls
Copy link

coveralls commented Jul 17, 2019

Coverage Status

Coverage increased (+0.06%) to 68.453% when pulling e1b88d4 on moufmouf:case_in_where into 91dda2c on thecodingmachine:1.3.

@moufmouf moufmouf merged commit e6c267f into thecodingmachine:1.3 Jul 17, 2019
@moufmouf moufmouf deleted the case_in_where branch July 17, 2019 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants