From 0e29107fa1625e0466d0935350a010e6eb33e113 Mon Sep 17 00:00:00 2001 From: "bell@sanja.is.com.ua" <> Date: Thu, 9 May 2002 12:12:17 +0300 Subject: [PATCH] removed fake description (EXPLAIN) of first table for last SELECT_LEX with global parameters, because now it is absent --- sql/sql_union.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sql/sql_union.cc b/sql/sql_union.cc index 2eae37a70eb..d821c6f6641 100644 --- a/sql/sql_union.cc +++ b/sql/sql_union.cc @@ -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) ?