mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
postreview fixes
This commit is contained in:
@ -332,7 +332,10 @@ public:
|
|||||||
Item_subselect *item;
|
Item_subselect *item;
|
||||||
/* thread handler */
|
/* thread handler */
|
||||||
THD *thd;
|
THD *thd;
|
||||||
/* fake SELECT_LEX for union processing */
|
/*
|
||||||
|
SELECT_LEX for hidden SELECT in onion which process global
|
||||||
|
ORDER BY and LIMIT
|
||||||
|
*/
|
||||||
st_select_lex *fake_select_lex;
|
st_select_lex *fake_select_lex;
|
||||||
|
|
||||||
st_select_lex *union_distinct; /* pointer to the last UNION DISTINCT */
|
st_select_lex *union_distinct; /* pointer to the last UNION DISTINCT */
|
||||||
|
@ -263,7 +263,8 @@ int st_select_lex_unit::prepare(THD *thd_arg, select_result *sel_result,
|
|||||||
union_result->set_table(table);
|
union_result->set_table(table);
|
||||||
|
|
||||||
thd_arg->lex->current_select= lex_select_save;
|
thd_arg->lex->current_select= lex_select_save;
|
||||||
if (!item_list.elements){
|
if (!item_list.elements)
|
||||||
|
{
|
||||||
Statement *stmt= thd->current_statement;
|
Statement *stmt= thd->current_statement;
|
||||||
Statement backup;
|
Statement backup;
|
||||||
if (stmt)
|
if (stmt)
|
||||||
|
Reference in New Issue
Block a user