Commit 192eb65e authored by bell@sanja.is.com.ua's avatar bell@sanja.is.com.ua

after merge fix

parent bd010b1e
...@@ -361,7 +361,8 @@ int st_select_lex_unit::exec() ...@@ -361,7 +361,8 @@ int st_select_lex_unit::exec()
item->reset(); item->reset();
table->file->delete_all_rows(); table->file->delete_all_rows();
} }
if (union_distinct && table->file->enable_indexes(HA_KEY_SWITCH_ALL)) if (union_distinct && table->file->enable_indexes(HA_KEY_SWITCH_ALL) &&
!describe)
DBUG_RETURN(1); // For sub-selects DBUG_RETURN(1); // For sub-selects
for (SELECT_LEX *sl= select_cursor; sl; sl= sl->next_select()) for (SELECT_LEX *sl= select_cursor; sl; sl= sl->next_select())
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment