mirror of
https://github.com/MariaDB/server.git
synced 2026-04-28 03:05:33 +02:00
WL#7076: Backporting wl6715 to support both formats
in 5.5, 5.6, 5.7.
This commit is contained in:
commit
d75c58e11f
17 changed files with 295 additions and 123 deletions
|
|
@ -1532,8 +1532,8 @@ bool mysql_change_db(THD *thd, const LEX_STRING *new_db_name, bool force_switch)
|
|||
db_access=
|
||||
test_all_bits(sctx->master_access, DB_ACLS) ?
|
||||
DB_ACLS :
|
||||
acl_get(sctx->host,
|
||||
sctx->ip,
|
||||
acl_get(sctx->get_host()->ptr(),
|
||||
sctx->get_ip()->ptr(),
|
||||
sctx->priv_user,
|
||||
new_db_file_name.str,
|
||||
FALSE) | sctx->master_access;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue