summaryrefslogtreecommitdiff
path: root/sql/sql_union.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_union.cc')
-rw-r--r--sql/sql_union.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_union.cc b/sql/sql_union.cc
index 0f218b73b16..286adb8b257 100644
--- a/sql/sql_union.cc
+++ b/sql/sql_union.cc
@@ -1740,6 +1740,7 @@ bool st_select_lex_unit::exec()
if (describe)
{
/*
+ UglySubqueryReoptimization:
In EXPLAIN command, constant subqueries that do not use any
tables are executed two times:
- 1st time is a real evaluation to get the subquery value