mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fixed always true condition that caused crash on database initialisation.
This commit is contained in:
committed by
Sergei Golubchik
parent
c4c09afb18
commit
84a2f06fb2
@ -1478,7 +1478,7 @@ bool mysql_change_db(THD *thd, const LEX_STRING *new_db_name, bool force_switch)
|
||||
sctx->priv_user,
|
||||
new_db_file_name.str,
|
||||
FALSE) | sctx->master_access;
|
||||
if (sctx->priv_role)
|
||||
if (sctx->priv_role[0])
|
||||
{
|
||||
/* include a possible currently set role for access */
|
||||
db_access|= acl_get("", "", sctx->priv_role, new_db_file_name.str, FALSE);
|
||||
|
Reference in New Issue
Block a user