mirror of
https://github.com/MariaDB/server.git
synced 2026-05-08 08:04:29 +02:00
fix according to review
This commit is contained in:
parent
c7d7c9ca10
commit
6bcee4f149
3 changed files with 37 additions and 14 deletions
|
|
@ -4673,6 +4673,10 @@ int fill_schema_table_privileges(THD *thd, TABLE_LIST *tables, COND *cond)
|
|||
if (table_access)
|
||||
{
|
||||
ulong test_access= table_access & ~GRANT_ACL;
|
||||
/*
|
||||
We should skip 'usage' privilege on table if
|
||||
we have any privileges on column(s) of this table
|
||||
*/
|
||||
if (!test_access && grant_table->cols)
|
||||
continue;
|
||||
if (!(table_access & GRANT_ACL))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue