mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Added GRANT privilege ON database.table TO role; functionality
This commit is contained in:
committed by
Sergei Golubchik
parent
01d4f47ef5
commit
3d17d94cd6
@ -4042,9 +4042,12 @@ static int replace_table_table(THD *thd, GRANT_TABLE *grant_table,
|
|||||||
*/
|
*/
|
||||||
if (!find_user_no_anon(combo.host.str,combo.user.str, FALSE))
|
if (!find_user_no_anon(combo.host.str,combo.user.str, FALSE))
|
||||||
{
|
{
|
||||||
my_message(ER_PASSWORD_NO_MATCH, ER(ER_PASSWORD_NO_MATCH),
|
if (!combo.host.length && !find_acl_role(combo.user.str))
|
||||||
MYF(0)); /* purecov: deadcode */
|
{
|
||||||
DBUG_RETURN(-1); /* purecov: deadcode */
|
my_message(ER_PASSWORD_NO_MATCH, ER(ER_PASSWORD_NO_MATCH),
|
||||||
|
MYF(0)); /* purecov: deadcode */
|
||||||
|
DBUG_RETURN(-1); /* purecov: deadcode */
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
table->use_all_columns();
|
table->use_all_columns();
|
||||||
|
Reference in New Issue
Block a user