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

Builder issue: Where calls with a multiline string condition don't wrap with parens #784

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sam-wbcx
Copy link

Explain your user case and expected results

We have several cases where we use multiline strings in Where clauses that are currently working as expected with Gorm v1.21.15, but after attempting to update to the latest version, we're seeing that some parens are no longer being included. I suspect that it has to do with multiline strings, since modifying the test to be a single line causes the test to pass, as does wrapping the multiline clause within it's own parens manually.

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.

1 participant