Commit 9724a259 authored by monty@mashka.mysql.fi's avatar monty@mashka.mysql.fi

Cleaned up code comment

parent 119d3f03
......@@ -1094,7 +1094,8 @@ String *Item_func_database::val_str(String *str)
String *Item_func_user::val_str(String *str)
{
THD *thd=current_thd;
if (!(thd->user) || // for system threads (e.g. replication thread)
// For a replication thread user may be a null pointer (To be fixed)
if (!thd->user ||
str->copy((const char*) thd->user,(uint) strlen(thd->user)) ||
str->append('@') ||
str->append(thd->host ? thd->host : thd->ip ? thd->ip : ""))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment