mirror of
https://github.com/MariaDB/server.git
synced 2026-04-23 00:35:32 +02:00
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().
This commit is contained in:
parent
9090c3efca
commit
2fe4d0e6cd
3 changed files with 38 additions and 24 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue