removing unnecessary patch.

parent 6fd764a6
...@@ -1461,8 +1461,7 @@ String *Item_func_user::val_str(String *str) ...@@ -1461,8 +1461,7 @@ String *Item_func_user::val_str(String *str)
// For system threads (e.g. replication SQL thread) user may be empty // For system threads (e.g. replication SQL thread) user may be empty
if (!thd->user) if (!thd->user)
return &empty_string; return &empty_string;
uint32 res_length=(strlen(thd->user)+strlen(host)+3) * cs->mbmaxlen; uint32 res_length=(strlen(thd->user)+strlen(host)+2) * cs->mbmaxlen;
// it is +3 , because 1 for each string and 1 for '@' sign
if (str->alloc(res_length)) if (str->alloc(res_length))
{ {
......
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