mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Don't display 'usage' privilege in TABLE_PRIVILEGES if we have columns privileges
mysqldump skips information_schema db 'use' now can use information_schema db changed value of column 'Null' to 'NO' if column is not nullable
This commit is contained in:
@ -4670,9 +4670,11 @@ int fill_schema_table_privileges(THD *thd, TABLE_LIST *tables, COND *cond)
|
||||
if (!(user=grant_table->user))
|
||||
user= "";
|
||||
ulong table_access= grant_table->privs;
|
||||
if (table_access != 0)
|
||||
if (table_access)
|
||||
{
|
||||
ulong test_access= table_access & ~GRANT_ACL;
|
||||
if (!test_access && grant_table->cols)
|
||||
continue;
|
||||
if (!(table_access & GRANT_ACL))
|
||||
is_grantable= "NO";
|
||||
|
||||
|
Reference in New Issue
Block a user