1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

remove LEX_USER->is_public

it's now redundant
This commit is contained in:
Sergei Golubchik
2022-09-24 23:12:00 +02:00
parent 5dc804c3bb
commit 0537ce4e9f
5 changed files with 16 additions and 24 deletions

View File

@ -2801,7 +2801,7 @@ bool sp_process_definer(THD *thd)
LEX_USER *d= get_current_user(thd, lex->definer);
if (!d)
DBUG_RETURN(TRUE);
if (d->is_public)
if (d->user.str == public_name.str)
{
my_error(ER_INVALID_ROLE, MYF(0), lex->definer->user.str);
DBUG_RETURN(TRUE);
@ -10064,7 +10064,6 @@ void get_default_definer(THD *thd, LEX_USER *definer, bool role)
}
definer->user.length= strlen(definer->user.str);
definer->auth= NULL;
definer->is_public= false;
}