summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r--sql/sql_lex.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index 3db784ce61d..4590804437d 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -11917,7 +11917,7 @@ bool SELECT_LEX_UNIT::explainable() const
EXPLAIN/ANALYZE unit, when:
(1) if it's a subquery - it's not part of eliminated WHERE/ON clause.
(2) if it's a CTE - it's not hanging (needed for execution)
- (3) if it's a derived - it's not merged or eliminated
+ (3) if it's a derived - it's not merged
if it's not 1/2/3 - it's some weird internal thing, ignore it
*/
@@ -11927,12 +11927,12 @@ bool SELECT_LEX_UNIT::explainable() const
derived && derived->derived_result &&
!with_element->is_hanging_recursive(): // (2)
derived ?
- derived->is_materialized_derived() && // (3)
- !is_derived_eliminated() :
+ derived->is_materialized_derived() : // (3)
false;
}
-bool SELECT_LEX_UNIT::is_derived_eliminated() const
+
+bool SELECT_LEX_UNIT::is_eliminated() const
{
if (!derived)
return false;