Skip to content
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

Bug: wrong priority in parsing 'not in' #384

Closed
ea-rus opened this issue Jul 3, 2024 · 0 comments · Fixed by #385
Closed

Bug: wrong priority in parsing 'not in' #384

ea-rus opened this issue Jul 3, 2024 · 0 comments · Fixed by #385

Comments

@ea-rus
Copy link
Contributor

ea-rus commented Jul 3, 2024

This query:

 SELECT *
 FROM table1 
 WHERE a = 1 AND b NOT IN (1,2)

is parsed with wrong operators priority:

 SELECT *
 FROM table1 
 WHERE (a = 1 AND b) NOT IN (1,2)

the proper way:

 SELECT *
 FROM table1 
 WHERE (a = 1) AND (b NOT IN (1,2))
ea-rus added a commit that referenced this issue Jul 3, 2024
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 a pull request may close this issue.

1 participant