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

Allow BETWEEN operator to be followed by AND operator #566

Merged
merged 1 commit into from
Feb 17, 2023
Merged

Conversation

nene
Copy link
Collaborator

@nene nene commented Feb 17, 2023

Fixes a long-standing bug which resulted in ambiguous grammar.

The solution involves adding multiple new parser rules which exclude the AND/OR/XOR operators from expressions inside the BETWEEN-expression.

This solution is far from elegant. Really it's plain ugly, but at least it gets the bug fixed. I think there's no good way to fix it in the current parser/formatter architecture.

Fixes #534

Fixes a long-standing bug which resulted in ambiguous grammar.

The solution involves adding multiple new parser rules
which exclude the AND/OR/XOR operators from expressions
inside the BETWEEN-expression.

This solution is far from elegant. Really it's plain ugly,
but at least it gets the bug fixed. I think there's no good
way to fix it in the current parser/formatter architecture.

Fixes #534
@nene nene merged commit 63f3c97 into master Feb 17, 2023
@nene nene deleted the between-plus-and branch February 17, 2023 13:28
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.

Ambiguous grammar error when BETWEEN followed by two AND keywords
1 participant