mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
Cleaned up code comment
This commit is contained in:
parent
119d3f039d
commit
9724a25901
1 changed files with 2 additions and 1 deletions
|
@ -1094,7 +1094,8 @@ String *Item_func_database::val_str(String *str)
|
||||||
String *Item_func_user::val_str(String *str)
|
String *Item_func_user::val_str(String *str)
|
||||||
{
|
{
|
||||||
THD *thd=current_thd;
|
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->copy((const char*) thd->user,(uint) strlen(thd->user)) ||
|
||||||
str->append('@') ||
|
str->append('@') ||
|
||||||
str->append(thd->host ? thd->host : thd->ip ? thd->ip : ""))
|
str->append(thd->host ? thd->host : thd->ip ? thd->ip : ""))
|
||||||
|
|
Loading…
Add table
Reference in a new issue