Commit 3d17d94c authored by Vicențiu Ciorbaru's avatar Vicențiu Ciorbaru Committed by Sergei Golubchik

Added GRANT privilege ON database.table TO role; functionality

parent 01d4f47e
......@@ -4041,11 +4041,14 @@ static int replace_table_table(THD *thd, GRANT_TABLE *grant_table,
this function is called!
*/
if (!find_user_no_anon(combo.host.str,combo.user.str, FALSE))
{
if (!combo.host.length && !find_acl_role(combo.user.str))
{
my_message(ER_PASSWORD_NO_MATCH, ER(ER_PASSWORD_NO_MATCH),
MYF(0)); /* purecov: deadcode */
DBUG_RETURN(-1); /* purecov: deadcode */
}
}
table->use_all_columns();
restore_record(table, s->default_values); // Get empty record
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment