mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
fixed bug of multi-level EXPLAIN
mysql-test/r/subselect.result: test of multi-level EXPLAIN mysql-test/t/subselect.test: test of multi-level EXPLAIN
This commit is contained in:
@ -104,11 +104,16 @@ bool select_union::flush()
|
||||
typedef JOIN * JOIN_P;
|
||||
int st_select_lex_unit::prepare(THD *thd, select_result *result)
|
||||
{
|
||||
DBUG_ENTER("st_select_lex_unit::prepare");
|
||||
|
||||
if (prepared)
|
||||
DBUG_RETURN(0);
|
||||
prepared= 1;
|
||||
|
||||
describe=(first_select()->options & SELECT_DESCRIBE) ? 1 : 0;
|
||||
res= 0;
|
||||
found_rows_for_union= false;
|
||||
TMP_TABLE_PARAM tmp_table_param;
|
||||
DBUG_ENTER("st_select_lex_unit::prepare");
|
||||
this->thd= thd;
|
||||
this->result= result;
|
||||
SELECT_LEX *lex_select_save= thd->lex.select;
|
||||
|
Reference in New Issue
Block a user