Skip to content

Case statement in where condition is removed by magic parameters #50

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 17, 2019

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