mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 23:54:31 +02:00
reset the db privilege cache when revoking db priviges on DROP ROLE
This commit is contained in:
parent
614478921f
commit
f6b8f6d156
2 changed files with 3 additions and 0 deletions
|
|
@ -95,6 +95,8 @@ pr1
|
||||||
pr1
|
pr1
|
||||||
drop role role1;
|
drop role role1;
|
||||||
flush tables;
|
flush tables;
|
||||||
|
select * from mysql.roles_mapping;
|
||||||
|
ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table 'roles_mapping'
|
||||||
select * from mysqltest1.t1;
|
select * from mysqltest1.t1;
|
||||||
ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table 't1'
|
ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table 't1'
|
||||||
select a from mysqltest1.t2;
|
select a from mysqltest1.t2;
|
||||||
|
|
|
||||||
|
|
@ -8882,6 +8882,7 @@ static int handle_grant_data(TABLE_LIST *tables, bool drop,
|
||||||
/* If search is requested, we do not need to search further. */
|
/* If search is requested, we do not need to search further. */
|
||||||
if (search_only)
|
if (search_only)
|
||||||
goto end;
|
goto end;
|
||||||
|
acl_cache->clear(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue