mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge 10.6 into 10.7
This commit is contained in:
@ -27794,8 +27794,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;
|
||||
@ -27806,6 +27809,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