We don't need tmp_value member in the Item_func_left.

sql/item_strfunc.cc:
  We don't need tmp_value member here.
sql/item_strfunc.h:
  We don't need tmp_value member here.
This commit is contained in:
unknown 2004-06-15 16:01:43 +05:00
parent 66c4087289
commit 2ef5b0ed4e
2 changed files with 2 additions and 3 deletions

View File

@ -952,8 +952,8 @@ String *Item_func_left::val_str(String *str)
return &my_empty_string;
if (res->length() <= (uint) length)
return res;
tmp_value.set(*res, 0, res->charpos(length));
return &tmp_value;
str_value.set(*res, 0, res->charpos(length));
return &str_value;
}

View File

@ -180,7 +180,6 @@ public:
class Item_func_left :public Item_str_func
{
String tmp_value;
public:
Item_func_left(Item *a,Item *b) :Item_str_func(a,b) {}
String *val_str(String *);