[X] I had searched in the issues and found no similar issues.
Version
2.0.1-rc04
What's Wrong?
I have a question for revoke
create user ceshilgp@'172%' IDENTIFIED by '123456';
create role role2;
grant grant_priv on internal.db_ceshi.* to role 'role2';
grant 'role2' to ceshi_lgp@'172%';
revoke 'role2' from ceshi_lgp@'172%'; ----success
show grants for ceshi_lgp@'172%'; ---The permissions for role2 remain in DatabasePrivs grant_priv
What You Expected?
After revoke role, the corresponding permissions are restored, and the show grant display is normal
How to Reproduce?
create user ceshilgp@'172%' IDENTIFIED by '123456';
create role role2;
grant grant_priv on internal.db_ceshi.* to role 'role2';
grant 'role2' to ceshi_lgp@'172%';
revoke 'role2' from ceshi_lgp@'172%';
show grants for ceshi_lgp@'172%';
Search before asking
Version
2.0.1-rc04
What's Wrong?
I have a question for revoke create user ceshilgp@'172%' IDENTIFIED by '123456'; create role role2; grant grant_priv on internal.db_ceshi.* to role 'role2'; grant 'role2' to ceshi_lgp@'172%'; revoke 'role2' from ceshi_lgp@'172%'; ----success show grants for ceshi_lgp@'172%'; ---The permissions for role2 remain in DatabasePrivs grant_priv
What You Expected?
After revoke role, the corresponding permissions are restored, and the show grant display is normal
How to Reproduce?
create user ceshilgp@'172%' IDENTIFIED by '123456'; create role role2; grant grant_priv on internal.db_ceshi.* to role 'role2'; grant 'role2' to ceshi_lgp@'172%'; revoke 'role2' from ceshi_lgp@'172%';
show grants for ceshi_lgp@'172%';
Anything Else?
No response
Are you willing to submit PR?
Code of Conduct