mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0
into moonbone.local:/work/10624-bug-5.0-mysql sql/sql_lex.cc: Auto merged
This commit is contained in:
@@ -1511,13 +1511,16 @@ bool st_select_lex::setup_ref_array(THD *thd, uint order_group_num)
|
||||
|
||||
void st_select_lex_unit::print(String *str)
|
||||
{
|
||||
bool union_all= !union_distinct;
|
||||
for (SELECT_LEX *sl= first_select(); sl; sl= sl->next_select())
|
||||
{
|
||||
if (sl != first_select())
|
||||
{
|
||||
str->append(" union ", 7);
|
||||
if (!union_distinct)
|
||||
if (union_all)
|
||||
str->append("all ", 4);
|
||||
else if (union_distinct == sl)
|
||||
union_all= true;
|
||||
}
|
||||
if (sl->braces)
|
||||
str->append('(');
|
||||
|
||||
Reference in New Issue
Block a user