Commit 0e29107f authored by bell@sanja.is.com.ua's avatar bell@sanja.is.com.ua

removed fake description (EXPLAIN) of first table for last SELECT_LEX with...

removed fake description (EXPLAIN) of first table for last SELECT_LEX with global parameters, because now it is absent
parent 906903b9
......@@ -35,7 +35,6 @@ int mysql_union(THD *thd, LEX *lex,select_result *result)
int res;
bool found_rows_for_union=false;
TABLE_LIST result_table_list;
TABLE_LIST *first_table=(TABLE_LIST *)lex->select_lex.table_list.first;
TMP_TABLE_PARAM tmp_table_param;
select_union *union_result;
DBUG_ENTER("mysql_union");
......@@ -127,8 +126,7 @@ int mysql_union(THD *thd, LEX *lex,select_result *result)
sl->options&= ~OPTION_FOUND_ROWS;
res= mysql_select(thd,
(describe && sl->linkage==GLOBAL_OPTIONS_TYPE) ?
first_table : (TABLE_LIST*) sl->table_list.first,
(TABLE_LIST*) sl->table_list.first,
sl->item_list,
sl->where,
(sl->braces) ?
......
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