mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge branch '10.6' into 10.7
This commit is contained in:
@@ -7134,7 +7134,8 @@ int mysql_table_grant(THD *thd, TABLE_LIST *table_list,
|
||||
table_list->grant.want_privilege);
|
||||
my_error(ER_TABLEACCESS_DENIED_ERROR, MYF(0),
|
||||
command, thd->security_ctx->priv_user,
|
||||
thd->security_ctx->host_or_ip, table_list->alias.str);
|
||||
thd->security_ctx->host_or_ip, table_list->db.str,
|
||||
table_list->alias.str);
|
||||
DBUG_RETURN(-1);
|
||||
}
|
||||
}
|
||||
@@ -8186,8 +8187,8 @@ bool grant_reload(THD *thd)
|
||||
@see check_table_access
|
||||
|
||||
@note
|
||||
This functions assumes that either number of tables to be inspected
|
||||
by it is limited explicitly (i.e. is is not UINT_MAX) or table list
|
||||
This function assumes that either number of tables to be inspected
|
||||
by it is limited explicitly (i.e. is not UINT_MAX) or table list
|
||||
used and thd->lex->query_tables_own_last value correspond to each
|
||||
other (the latter should be either 0 or point to next_global member
|
||||
of one of elements of this table list).
|
||||
@@ -8392,7 +8393,7 @@ err:
|
||||
my_error(ER_TABLEACCESS_DENIED_ERROR, MYF(0),
|
||||
command,
|
||||
sctx->priv_user,
|
||||
sctx->host_or_ip,
|
||||
sctx->host_or_ip, tl ? tl->db.str : "unknown",
|
||||
tl ? tl->get_table_name() : "unknown");
|
||||
}
|
||||
DBUG_RETURN(TRUE);
|
||||
@@ -8576,7 +8577,7 @@ bool check_grant_all_columns(THD *thd, privilege_t want_access_arg,
|
||||
Security_context *sctx= thd->security_ctx;
|
||||
privilege_t want_access(NO_ACL);
|
||||
const char *table_name= NULL;
|
||||
const char* db_name;
|
||||
const char* db_name= NULL;
|
||||
GRANT_INFO *grant;
|
||||
GRANT_TABLE *UNINIT_VAR(grant_table);
|
||||
GRANT_TABLE *UNINIT_VAR(grant_table_role);
|
||||
@@ -8665,7 +8666,7 @@ err:
|
||||
if (using_column_privileges)
|
||||
my_error(ER_TABLEACCESS_DENIED_ERROR, MYF(0),
|
||||
command, sctx->priv_user,
|
||||
sctx->host_or_ip, table_name);
|
||||
sctx->host_or_ip, db_name, table_name);
|
||||
else
|
||||
my_error(ER_COLUMNACCESS_DENIED_ERROR, MYF(0),
|
||||
command,
|
||||
|
Reference in New Issue
Block a user