1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

- addendum of the fix for bug 27786:

applied the new function is_union() to places
  in the code that check the same condition.
- 5.0->5.1 merge fixes
This commit is contained in:
gkodinov/kgeorge@magare.gmz
2007-04-23 14:16:49 +03:00
parent 0d70f964aa
commit 429371f9d5
8 changed files with 26 additions and 28 deletions

View File

@ -236,9 +236,7 @@ bool mysql_derived_filling(THD *thd, LEX *lex, TABLE_LIST *orig_table_list)
SELECT_LEX *first_select= unit->first_select();
select_union *derived_result= orig_table_list->derived_result;
SELECT_LEX *save_current_select= lex->current_select;
bool is_union= first_select->next_select() &&
first_select->next_select()->linkage == UNION_TYPE;
if (is_union)
if (unit->is_union())
{
// execute union without clean up
res= unit->exec();