diff options
author | Alexander Barkov <bar@mariadb.org> | 2015-05-05 01:09:47 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2015-05-05 01:09:47 +0400 |
commit | 2fe4d0e6cde260b772da5e0c3dbad4bd4ab5bee3 (patch) | |
tree | 7aaa5a724a0065463ced9d91031587e9f6da6141 /sql/item_cmpfunc.h | |
parent | 9090c3efcae0874219b990e73568e41e021a3352 (diff) | |
download | mariadb-git-2fe4d0e6cde260b772da5e0c3dbad4bd4ab5bee3.tar.gz |
MDEV-7950 Item_func::type() takes 0.26% in OLTP RO
Step #3: Splitting the function check_equality() into a method in Item.
Implementing Item::check_equality() and Item_func_eq::check_equality().
Implement Item_func_eq::build_equal_items() in addition to
Item_func::build_equal_items() and moving the call for check_equality()
from Item_func::build_equal_items() to Item_func_eq::build_equal_items().
Diffstat (limited to 'sql/item_cmpfunc.h')
-rw-r--r-- | sql/item_cmpfunc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/item_cmpfunc.h b/sql/item_cmpfunc.h index ae7bac0cac1..53f249d9def 100644 --- a/sql/item_cmpfunc.h +++ b/sql/item_cmpfunc.h @@ -562,6 +562,9 @@ public: cond_result eq_cmp_result() const { return COND_TRUE; } const char *func_name() const { return "="; } Item *negated_item(); + COND *build_equal_items(THD *thd, COND_EQUAL *inherited, + bool link_item_fields); + bool check_equality(THD *thd, COND_EQUAL *cond, List<Item> *eq_list); /* - If this equality is created from the subquery's IN-equality: number of the item it was created from, e.g. for |