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 .*? from parser #48917

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Remove .*? from parser #48917

wants to merge 4 commits into from

Conversation

mihailom-db
Copy link
Contributor

What changes were proposed in this pull request?

I propose to remove .*? from parser rules.

Why are the changes needed?

.*? will match anything and in that case will consume comments and all garbage, we need to fix this to make queries like set /*comment*/ ; work. This is a bug that we have from beginning of the parser and IMO should be fixed to work properly.

Does this PR introduce any user-facing change?

Yes, fixing parser.

How was this patch tested?

Existing tests and added tests to come.

Was this patch authored or co-authored using generative AI tooling?

Yes.

@github-actions github-actions bot added the SQL label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant