Commit e2a4c4a5 authored by unknown's avatar unknown
Browse files

Cleaned up code comment

parent 2c3f6568
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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 : ""))