-
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
executor: fix revoke result view bug #38552
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Welcome @wxbty! |
3a05751
to
434724c
Compare
hi, @dveeden This pr also wants to get your advice,thx |
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 otherwise
/cc @dveeden |
9f10a67
to
240b509
Compare
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
Can you help fix a similar issue on column-level privilege?
CREATE user test;
GRANT SELECT(`Host`) ON `mysql`.`db` TO test;
REVOKE SELECT(`Host`) ON `mysql`.`db` FROM test;
SELECT * FROM `mysql`.`columns_priv`; -- Expected empty result set, but got the following rows
+------+-------+------+------------+-------------+---------------------+-------------+
| Host | DB | User | Table_name | Column_name | Timestamp | Column_priv |
+------+-------+------+------------+-------------+---------------------+-------------+
| % | mysql | test | db | Host | 2022-10-26 16:01:23 | |
+------+-------+------+------------+-------------+---------------------+-------------+
1 row in set (0.002 sec)
ok |
The button should be somewhere at the right side panel.
It is up to you. I suggest opening another PR with your repo will be easy. I'll merge the PR when I am notified.
CI is always unstable somehow. And it does take a long time to run all tests. |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 8f840a0
|
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 59b4bfd
|
When ci is passed, maybe you will merge successfully. |
Yes, so I tag it as mergeable first. So I don't need to watch the PR to see tests are passed or not. |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 0cbd221
|
If this time unsuccessful, I will reopen it, I know how the new pr is set up |
typo |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 4521a06
|
Signed-off-by: x-shadow-man [email protected]
Fix bug in issue #38421
also on column-level privilege
What problem does this PR solve?
This pr mainly fixes the bug of 38421.
To this end, I added new unit test【TestRevokeTableSingle、TestRevokeTableSingleColumn】, and also modified the involved unit tests【TestRevokeTableScope、TestRevokeColumnScope】.
Issue Number: close #38421