-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
executor, plan: add executor to support GRANT ROLE
#9721
Conversation
parser pr: pingcap/parser#242 |
Codecov Report
@@ Coverage Diff @@
## master #9721 +/- ##
================================================
- Coverage 77.5494% 77.5426% -0.0068%
================================================
Files 404 404
Lines 81704 81706 +2
================================================
- Hits 63361 63357 -4
+ Misses 13649 13646 -3
- Partials 4694 4703 +9 |
LGTM |
Please resolve the conflicts. |
/rebuild |
/run-all-tests |
PTAL @zz-jason |
/run-all-tests |
/run-all-tests |
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
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
What problem does this PR solve?
add executor to support SQL like
GRANT roles TO users
.What is changed and how it works?
Adding
executeGrantRole
forSimpleExec
executor. Checking whether all roles and users exist before grant. When executingGRANT ROLE
, executor will insert tuple intomysql.role_edges
table and flush privilege.Test case will be added later.
Check List
Tests
Code changes
Side effects