diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 3b3da6d35b3..5857dc50c4f 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -500,7 +500,7 @@ check_connections(THD *thd) #if !defined(HAVE_SYS_UN_H) || defined(HAVE_mit_thread) /* Fast local hostname resolve for Win32 */ if (!strcmp(thd->ip,"127.0.0.1")) - thd->host=(char*) localhost; + thd->host= thd->host_or_ip= (char*) localhost; else #endif if (!(specialflag & SPECIAL_NO_RESOLVE))