Commit 438a7d01 authored by ram@gw.mysql.r18.ru's avatar ram@gw.mysql.r18.ru

We don't need tmp_value member in the Item_func_left.

parent 71eee450
...@@ -952,8 +952,8 @@ String *Item_func_left::val_str(String *str) ...@@ -952,8 +952,8 @@ String *Item_func_left::val_str(String *str)
return &my_empty_string; return &my_empty_string;
if (res->length() <= (uint) length) if (res->length() <= (uint) length)
return res; return res;
tmp_value.set(*res, 0, res->charpos(length)); str_value.set(*res, 0, res->charpos(length));
return &tmp_value; return &str_value;
} }
......
...@@ -180,7 +180,6 @@ public: ...@@ -180,7 +180,6 @@ public:
class Item_func_left :public Item_str_func class Item_func_left :public Item_str_func
{ {
String tmp_value;
public: public:
Item_func_left(Item *a,Item *b) :Item_str_func(a,b) {} Item_func_left(Item *a,Item *b) :Item_str_func(a,b) {}
String *val_str(String *); String *val_str(String *);
......
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