summaryrefslogtreecommitdiff
path: root/sql/sql_db.cc
diff options
context:
space:
mode:
authorserg@serg.mylan <>2003-04-29 00:15:18 +0200
committerserg@serg.mylan <>2003-04-29 00:15:18 +0200
commitd13e4fc5323d39740f4e7084ee7de5550283fef3 (patch)
tree4123c13b090559901f6bffb85ed81ccc76a90928 /sql/sql_db.cc
parentda3e2d29a06124d4afa93da1ad1585b2adfc2329 (diff)
downloadmariadb-git-d13e4fc5323d39740f4e7084ee7de5550283fef3.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)
Diffstat (limited to 'sql/sql_db.cc')
-rw-r--r--sql/sql_db.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_db.cc b/sql/sql_db.cc
index 900c87d83a5..7e58b5d4582 100644
--- a/sql/sql_db.cc
+++ b/sql/sql_db.cc
@@ -362,11 +362,11 @@ bool mysql_change_db(THD *thd,const char *name)
{
net_printf(&thd->net,ER_DBACCESS_DENIED_ERROR,
thd->priv_user,
- thd->host_or_ip,
+ thd->priv_host,
dbname);
mysql_log.write(thd,COM_INIT_DB,ER(ER_DBACCESS_DENIED_ERROR),
thd->priv_user,
- thd->host_or_ip,
+ thd->priv_host,
dbname);
my_free(dbname,MYF(0));
DBUG_RETURN(1);