Commit a63184a6 authored by unknown's avatar unknown

after merge fix


sql/sql_union.cc:
  describe should go until the end
parent efcb7706
......@@ -361,7 +361,8 @@ int st_select_lex_unit::exec()
item->reset();
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
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