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.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_union.cc b/sql/sql_union.cc
index 88d2f7a1d25..aeedfeb148b 100644
--- a/sql/sql_union.cc
+++ b/sql/sql_union.cc
@@ -50,7 +50,7 @@ int mysql_union(THD *thd, LEX *lex,select_result *result)
cursor;
cursor=cursor->next)
{
- if (cursor->do_redirect)
+ if (cursor->do_redirect) // False if CUBE/ROLLUP
{
cursor->table= ((TABLE_LIST*) cursor->table)->table;
cursor->do_redirect=false;