summaryrefslogtreecommitdiff
path: root/sql/item_strfunc.h
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2014-02-03 15:27:03 +0100
committerSergei Golubchik <sergii@pisem.net>2014-02-03 15:27:03 +0100
commit0b3d74e4031294721207e48bb38d1fd4f1b5c613 (patch)
tree1ca7d5e6734d3964f0ba5dbd7dc6cd04ec261a22 /sql/item_strfunc.h
parent6c9272f7d51c25e5ba6b78de0d34460ecbefdb51 (diff)
downloadmariadb-git-0b3d74e4031294721207e48bb38d1fd4f1b5c613.tar.gz
WEIGHT_STRING fix: correct Item_func_weight_string::eq() method
Diffstat (limited to 'sql/item_strfunc.h')
-rw-r--r--sql/item_strfunc.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sql/item_strfunc.h b/sql/item_strfunc.h
index a33f4910fd5..7b2591e9346 100644
--- a/sql/item_strfunc.h
+++ b/sql/item_strfunc.h
@@ -1057,6 +1057,15 @@ public:
const char *func_name() const { return "weight_string"; }
String *val_str(String *);
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