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

Remove unneeded parentheses in SQL queries #26767

Closed
roji opened this issue Nov 19, 2021 · 1 comment · Fixed by #30371
Closed

Remove unneeded parentheses in SQL queries #26767

roji opened this issue Nov 19, 2021 · 1 comment · Fixed by #30371

Comments

@roji
Copy link
Member

roji commented Nov 19, 2021

#26652 was about where IS NULL was missing parentheses, causing wrong evaluation and incorrect data being returned by queries (x = y IS NULL). This was fixed in a simple way in #26653 for 6.0, but added lots of unneeded parentheses too at the same time.

For 8.0, build upon #23895 to do this better, without adding spurious parentheses.

@roji
Copy link
Member Author

roji commented Jan 11, 2022

Note to self: reenable test Bool_not_equal_nullable_int_HasValue when doing this.

This was referenced Jan 13, 2022
@roji roji changed the title Place parentheses around IS NULL only when needed (7.0) Remove unneeded parentheses in SQL queries Aug 8, 2022
@ajcvickers ajcvickers modified the milestones: 7.0.0, 8.0.0 Sep 10, 2022
@ajcvickers ajcvickers added priority-bug Issues which requires API breaks and have bigger impact hence should be fixed earlier in the release punted-for-7.0 labels Sep 10, 2022
@roji roji removed priority-bug Issues which requires API breaks and have bigger impact hence should be fixed earlier in the release closed-fixed labels Nov 25, 2022
roji added a commit to roji/efcore that referenced this issue Dec 1, 2022
maumar pushed a commit that referenced this issue Jan 12, 2023
maumar pushed a commit that referenced this issue Mar 1, 2023
maumar pushed a commit that referenced this issue Mar 1, 2023
Removing unnecessary parentheses

Closes #26767

rebase, fix sqlite tests and move some ops tests around
maumar pushed a commit that referenced this issue Mar 1, 2023
maumar added a commit that referenced this issue Mar 9, 2023
Removing unnecessary parentheses

Closes #26767

Co-authored-by: Shay Rojansky <[email protected]>
@ajcvickers ajcvickers modified the milestones: 8.0.0, 8.0.0-preview3 Mar 13, 2023
@ajcvickers ajcvickers modified the milestones: 8.0.0-preview3, 8.0.0 Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants