summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2019-10-07 20:25:55 +0200
committerSergei Golubchik <serg@mariadb.org>2019-10-13 20:03:08 +0200
commitabd8e14e45d0474edd757e41a9a041ddb08b7a75 (patch)
tree030c08a35339ea013986eeae42a803a7329abb98 /sql/sql_lex.cc
parentf2b27cbf966d715f0b4213703bf99f29f0d16038 (diff)
downloadmariadb-git-abd8e14e45d0474edd757e41a9a041ddb08b7a75.tar.gz
cleanup st_select_lex_unit::explainable
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r--sql/sql_lex.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index f60c396d064..c2ca6c41e21 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -5225,10 +5225,8 @@ int st_select_lex_unit::save_union_explain_part2(Explain_query *output)
for (SELECT_LEX_UNIT *unit= fake_select_lex->first_inner_unit();
unit; unit= unit->next_unit())
{
- if (!(unit->item && unit->item->eliminated))
- {
+ if (unit->explainable())
eu->add_child(unit->first_select()->select_number);
- }
}
fake_select_lex->join->explain= &eu->fake_select_lex_explain;
}