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 most SQL parentheses for AND/OR #30525

Merged
merged 1 commit into from
Mar 21, 2023
Merged

Remove most SQL parentheses for AND/OR #30525

merged 1 commit into from
Mar 21, 2023

Conversation

roji
Copy link
Member

@roji roji commented Mar 19, 2023

#30371 introduced better parentheses handling via a provider-defined operator precedence table. However, for provider which don't (yet) define that, that PR causes unneeded parentheses to be added around ADD/OR, since the previous logic we had for this was removed.

Add back that logic for when the provider doesn't provide precedence.

@roji roji requested a review from maumar March 19, 2023 13:10
operator precedence table. However, for provider which don't (yet)
define that, that PR causes unneeded parentheses to be added around
ADD/OR, since the previous logic we had for this was removed.
@roji roji changed the title Remove SQL parentheses for most outer ANDs Remove most SQL parentheses for AND/OR Mar 19, 2023
@roji roji merged commit 16201e9 into dotnet:main Mar 21, 2023
@roji roji deleted the MoreParens branch March 21, 2023 08:26
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