-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
privilege: fix REVOKE
privilege check incompatibility with MySQL (#13014)
#13306
privilege: fix REVOKE
privilege check incompatibility with MySQL (#13014)
#13306
Conversation
/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
/run-all-tests |
@sre-bot merge failed. |
/merge |
Your auto merge job has been accepted, waiting for 13784 |
/run-all-tests |
@sre-bot merge failed. |
@sre-bot No command or invalid command |
@sre-bot No command or invalid command |
14 similar comments
@sre-bot No command or invalid command |
@sre-bot No command or invalid command |
@sre-bot No command or invalid command |
@sre-bot No command or invalid command |
@sre-bot No command or invalid command |
@sre-bot No command or invalid command |
@sre-bot No command or invalid command |
@sre-bot No command or invalid command |
@sre-bot No command or invalid command |
@sre-bot No command or invalid command |
@sre-bot No command or invalid command |
@sre-bot No command or invalid command |
@sre-bot No command or invalid command |
@sre-bot No command or invalid command |
Terrible bug of bot, fixed. |
/merge |
Your auto merge job has been accepted, waiting for 13892, 13932, 13784 |
/run-all-tests |
@sre-bot merge failed. |
/run-unit-test |
/run-all-tests |
/run-all-tests |
/merge |
/run-all-tests |
cherry-pick #13014 to release-3.0
What problem does this PR solve?
Originally, execute
REVOKE
query demand user haveSuperPriv
, which is incompatibility with MySQL in such case.TiDB will return error, MySQL is ok.
What is changed and how it works?
change privilege check for
REVOKE
likeGRANT
. If a user has grant option on some object like table or db, he can revoke privilege on these object from other users.Check List
Tests
Code changes
Side effects
Related changes
Release note
REVOKE