summaryrefslogtreecommitdiff
path: root/sql/item.cc
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2005-09-15 22:29:07 +0300
committerbell@sanja.is.com.ua <>2005-09-15 22:29:07 +0300
commitaec371f910c56f03ca108439a1b5d449b1bd9dc3 (patch)
treefc6da649fdbafccdf434cac04cebe418f638185d /sql/item.cc
parenta9b3767874eea19ab146404a199ba2927e013b1e (diff)
downloadmariadb-git-aec371f910c56f03ca108439a1b5d449b1bd9dc3.tar.gz
WL#2787 (part 2, ver 3 (merged)) changed securety context switching
Diffstat (limited to 'sql/item.cc')
-rw-r--r--sql/item.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/item.cc b/sql/item.cc
index df57c301327..45c12d3840f 100644
--- a/sql/item.cc
+++ b/sql/item.cc
@@ -3443,8 +3443,8 @@ bool Item_field::fix_fields(THD *thd, Item **reference)
VIEW_ANY_ACL)))
{
my_error(ER_COLUMNACCESS_DENIED_ERROR, MYF(0),
- "ANY", thd->priv_user, thd->host_or_ip,
- field_name, tab);
+ "ANY", thd->security_ctx->priv_user,
+ thd->security_ctx->host_or_ip, field_name, tab);
goto error;
}
}