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

Added whitespaces where necessary in regex checks #312

Merged
merged 2 commits into from
Sep 12, 2022

Conversation

rahulb-yb
Copy link
Collaborator

[Fixes #249]
Some regexes did not handle the border cases of certain reserved words being a prefix to object names. This particular issue (#249) arose as the regex simply checked for the keyword "cluster". We needed to ensure this keyword was being used as a stand-alone term rather than a prefix (regex form should be (?i)ALTER TABLE CLUSTER . Note the additional whitespace after the keyword cluster)

All similar instances of regexes have been corrected

@rahulb-yb rahulb-yb self-assigned this Sep 9, 2022
Copy link
Collaborator

@sanyamsinghal sanyamsinghal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the quick fix @rahulb-yb

@rahulb-yb rahulb-yb merged commit 49d4797 into main Sep 12, 2022
@rahulb-yb rahulb-yb deleted the rahul-analyze-schema branch September 12, 2022 04:53
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.

[MySQL] Issue in analyse schema reports needs more details
2 participants