-
Notifications
You must be signed in to change notification settings - Fork 6.1k
parser: Add option to allow additional MariaDB syntax #64625
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
base: master
Are you sure you want to change the base?
Conversation
|
Skipping CI for Draft Pull Request. |
|
Hi @dveeden. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
c882d56 to
7628bc3
Compare
7628bc3 to
23b80b1
Compare
|
/retest |
|
@dveeden: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/ok-to-test |
lance6716
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And in fact SEQUENCE is a MariaDB syntax, https://docs.pingcap.com/tidb/stable/sql-statement-create-sequence/#mysql-compatibility so maybe add it to the comment of SetMariaDB that for compatibility it's always enabled.
23b80b1 to
da41ec3
Compare
The SEQUENCE came from MariaDB, but is now accepted TiDB syntax. The |
I think we can narrow the name like SetMariaDBPrivCompatible, SetDMMode or something |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #64625 +/- ##
================================================
- Coverage 70.7518% 68.6108% -2.1411%
================================================
Files 1895 1873 -22
Lines 518098 509982 -8116
================================================
- Hits 366564 349903 -16661
- Misses 126999 137687 +10688
+ Partials 24535 22392 -2143
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
I think the right name is difficult
Maybe the solution is to have a ok-ish name and a good and complete comment? |
077c39e to
1c6c913
Compare
|
/cc @D3Hunter |
|
/retest |
|
/assign @yudongusa |
|
@lance6716: GitHub didn't allow me to assign the following users: yudongusa. Note that only pingcap members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/retest |
2 similar comments
|
/retest |
|
/retest |
|
ptal @bb7133 @yudongusa |
|
/retest |
|
/retest |
bb7133
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: bb7133, D3Hunter, hawkingrei, lance6716 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
1 similar comment
|
/retest |
What problem does this PR solve?
Issue Number: close #64635
Problem Summary:
This is used in pingcap/tiflow#12404
What changed and how does it work?
This adds
SetMariaDB()to the parser, which can then be checked when parsing privilege names.Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.
Questions
BINLOG MONITORand add other permissions later on when needed? Or add them now?The keywords added for this might show up ininformation_schema.keywords. Should we filter these out?