summaryrefslogtreecommitdiff
path: root/sql/sql_view.cc
diff options
context:
space:
mode:
authorAnel Husakovic <anel@mariadb.org>2022-07-16 14:39:17 +0200
committerAnel <an3l@users.noreply.github.com>2022-09-30 08:48:57 +0200
commit1f51d6c0f6527324dfe7c066fc60fc2292ea7e11 (patch)
treed66f53de3b296ee131a038055cd98b737778389e /sql/sql_view.cc
parentf9605eb20947f5533cfe74dda44c9a22b43c551f (diff)
downloadmariadb-git-1f51d6c0f6527324dfe7c066fc60fc2292ea7e11.tar.gz
MDEV-28548: ER_TABLEACCESS_DENIED_ERROR is missing information about DB
- Added missing information about database of corresponding table for various types of commands - Update some typos - Reviewed by: <vicentiu@mariadb.org>
Diffstat (limited to 'sql/sql_view.cc')
-rw-r--r--sql/sql_view.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_view.cc b/sql/sql_view.cc
index b6787a1cb8b..d8b68725f3e 100644
--- a/sql/sql_view.cc
+++ b/sql/sql_view.cc
@@ -302,7 +302,8 @@ bool create_view_precheck(THD *thd, TABLE_LIST *tables, TABLE_LIST *view,
{
my_error(ER_TABLEACCESS_DENIED_ERROR, MYF(0),
"ANY", thd->security_ctx->priv_user,
- thd->security_ctx->priv_host, tbl->table_name.str);
+ thd->security_ctx->priv_host,
+ tbl->db.str, tbl->table_name.str);
goto err;
}
/*