mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge 10.5 into 10.6
This commit is contained in:
@ -27796,8 +27796,11 @@ bool mysql_explain_union(THD *thd, SELECT_LEX_UNIT *unit, select_result *result)
|
||||
|
||||
if (unit->is_unit_op() || unit->fake_select_lex)
|
||||
{
|
||||
ulonglong save_options= 0;
|
||||
|
||||
if (unit->union_needs_tmp_table() && unit->fake_select_lex)
|
||||
{
|
||||
save_options= unit->fake_select_lex->options;
|
||||
unit->fake_select_lex->select_number= FAKE_SELECT_LEX_ID; // just for initialization
|
||||
unit->fake_select_lex->type= unit_operation_text[unit->common_op()];
|
||||
unit->fake_select_lex->options|= SELECT_DESCRIBE;
|
||||
@ -27808,6 +27811,9 @@ bool mysql_explain_union(THD *thd, SELECT_LEX_UNIT *unit, select_result *result)
|
||||
if (!is_pushed_union)
|
||||
res= unit->exec();
|
||||
}
|
||||
|
||||
if (unit->union_needs_tmp_table() && unit->fake_select_lex)
|
||||
unit->fake_select_lex->options= save_options;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user