summaryrefslogtreecommitdiff
path: root/sql/item_create.cc
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2003-04-29 00:15:18 +0200
committerunknown <serg@serg.mylan>2003-04-29 00:15:18 +0200
commitd098137155f184aaa25b9710d40854928276fcaf (patch)
tree4123c13b090559901f6bffb85ed81ccc76a90928 /sql/item_create.cc
parent13a24a513d4d761836eef44a0b1e28174338d9a1 (diff)
downloadmariadb-git-d098137155f184aaa25b9710d40854928276fcaf.tar.gz
CURRENT_USER() and "access denied" error messages now report hostname exactly as it was specified in the GRANT command (with wildcards, that is)
BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
Diffstat (limited to 'sql/item_create.cc')
-rw-r--r--sql/item_create.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_create.cc b/sql/item_create.cc
index 7e082bc174c..6809d6892b0 100644
--- a/sql/item_create.cc
+++ b/sql/item_create.cc
@@ -297,7 +297,7 @@ Item *create_func_current_user()
char buff[HOSTNAME_LENGTH+USERNAME_LENGTH+2];
uint length;
- length= (uint) (strxmov(buff, thd->priv_user, "@", thd->host_or_ip, NullS) -
+ length= (uint) (strxmov(buff, thd->priv_user, "@", thd->priv_host, NullS) -
buff);
return new Item_string(NullS, thd->memdup(buff, length), length);
}