1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

after merge fix

sql/sql_union.cc:
  describe should go until the end
This commit is contained in:
unknown
2004-05-19 18:13:21 +03:00
parent efcb7706c4
commit a63184a6a3

View File

@@ -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())
{