1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

correct support for a mix of UNION/UNION ALL in the same query.

Bug#1428
This commit is contained in:
serg@serg.mylan
2004-03-23 14:43:24 +01:00
parent 6158c94b32
commit 99886df867
8 changed files with 26 additions and 20 deletions

View File

@ -138,7 +138,7 @@ static int mysql_derived(THD *thd, LEX *lex, SELECT_LEX_UNIT *unit,
*/
if (!(table= create_tmp_table(thd, &derived_result->tmp_table_param,
unit->types, (ORDER*) 0,
is_union && !unit->union_option, 1,
is_union && unit->union_distinct, 1,
(first_select->options | thd->options |
TMP_TABLE_ALL_COLUMNS),
HA_POS_ERROR,