Commit 0b3d74e4 authored by Sergei Golubchik's avatar Sergei Golubchik

WEIGHT_STRING fix: correct Item_func_weight_string::eq() method

parent 6c9272f7
...@@ -1057,6 +1057,15 @@ public: ...@@ -1057,6 +1057,15 @@ public:
const char *func_name() const { return "weight_string"; } const char *func_name() const { return "weight_string"; }
String *val_str(String *); String *val_str(String *);
void fix_length_and_dec(); void fix_length_and_dec();
bool eq(const Item *item, bool binary_cmp) const
{
if (!Item_str_func::eq(item, binary_cmp))
return false;
Item_func_weight_string *that= (Item_func_weight_string *)item;
return this->flags == that->flags &&
this->nweights == that->nweights &&
this->result_length == that->result_length;
}
}; };
class Item_func_crc32 :public Item_int_func class Item_func_crc32 :public Item_int_func
......
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