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:
@ -997,7 +997,7 @@ void st_select_lex_unit::init_query()
|
||||
global_parameters= first_select();
|
||||
select_limit_cnt= HA_POS_ERROR;
|
||||
offset_limit_cnt= 0;
|
||||
union_option= 0;
|
||||
union_distinct= 0;
|
||||
prepared= optimized= executed= 0;
|
||||
item= 0;
|
||||
union_result= 0;
|
||||
@ -1572,7 +1572,7 @@ void st_select_lex_unit::print(String *str)
|
||||
if (sl != first_select())
|
||||
{
|
||||
str->append(" union ", 7);
|
||||
if (union_option & UNION_ALL)
|
||||
if (!union_distinct)
|
||||
str->append("all ", 4);
|
||||
}
|
||||
if (sl->braces)
|
||||
|
Reference in New Issue
Block a user