diff options
author | serg@serg.mylan <> | 2003-04-29 00:15:18 +0200 |
---|---|---|
committer | serg@serg.mylan <> | 2003-04-29 00:15:18 +0200 |
commit | d13e4fc5323d39740f4e7084ee7de5550283fef3 (patch) | |
tree | 4123c13b090559901f6bffb85ed81ccc76a90928 /sql/sql_db.cc | |
parent | da3e2d29a06124d4afa93da1ad1585b2adfc2329 (diff) | |
download | mariadb-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.cc | 4 |
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); |