mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Better fix for GRANT bug
tests/grant.pl: More options for test tests/grant.res: new test results
This commit is contained in:
@ -1644,7 +1644,8 @@ find_field_in_tables(THD *thd,Item_field *item,TABLE_LIST *tables)
|
||||
found_table=1;
|
||||
Field *find=find_field_in_table(thd,tables->table,name,length,
|
||||
grant_option &&
|
||||
tables->grant.want_privilege ,1);
|
||||
tables->table->grant.want_privilege,
|
||||
1);
|
||||
if (find)
|
||||
{
|
||||
if (find == WRONG_GRANT)
|
||||
@ -1683,7 +1684,9 @@ find_field_in_tables(THD *thd,Item_field *item,TABLE_LIST *tables)
|
||||
for (; tables ; tables=tables->next)
|
||||
{
|
||||
Field *field=find_field_in_table(thd,tables->table,name,length,
|
||||
grant_option && tables->grant.want_privilege ,allow_rowid);
|
||||
grant_option &&
|
||||
tables->table->grant.want_privilege,
|
||||
allow_rowid);
|
||||
if (field)
|
||||
{
|
||||
if (field == WRONG_GRANT)
|
||||
|
Reference in New Issue
Block a user