summaryrefslogtreecommitdiff
path: root/sql/item_cmpfunc.cc
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2019-02-19 02:44:27 -0800
committerIgor Babaev <igor@askmonty.org>2019-02-19 02:45:24 -0800
commit8283d7d2c029cb520214ae7d33af8851acc80892 (patch)
tree9e805ca20f1913fa005a59db48aeeb7f02ad31fe /sql/item_cmpfunc.cc
parent7fe1ca7ed6ac5d28a51a08749c8cdc64495d6911 (diff)
downloadmariadb-git-8283d7d2c029cb520214ae7d33af8851acc80892.tar.gz
MDEV-7486: Condition pushdown from HAVING into WHERE
Optimized the code that removed multiple equalities pushed from HAVING into WHERE. Now this removal is postponed until all multiple equalities are eliminated in substitute_for_best_equal_field().
Diffstat (limited to 'sql/item_cmpfunc.cc')
-rw-r--r--sql/item_cmpfunc.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc
index b4ff4ab3fe0..55a06254917 100644
--- a/sql/item_cmpfunc.cc
+++ b/sql/item_cmpfunc.cc
@@ -6509,8 +6509,6 @@ Item_equal::Item_equal(THD *thd, Item_equal *item_equal):
with_const= item_equal->with_const;
cond_false= item_equal->cond_false;
upper_levels= item_equal->upper_levels;
- if (item_equal->upper_levels)
- item_equal->upper_levels->increase_references();
}
@@ -7353,8 +7351,6 @@ Item_equal::excl_dep_on_group_fields_for_having_pushdown(st_select_lex *sel)
{
if (item->excl_dep_on_group_fields_for_having_pushdown(sel))
{
- if (upper_levels)
- upper_levels->references--;
set_extraction_flag(FULL_EXTRACTION_FL);
return true;
}