mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
many bug fixes
This commit is contained in:
@ -107,9 +107,12 @@ int mysql_derived(THD *thd, LEX *lex, SELECT_LEX_UNIT *unit, TABLE_LIST *t)
|
||||
table->derived_select_number= sl->select_number;
|
||||
table->tmp_table=TMP_TABLE;
|
||||
if (lex->describe)
|
||||
tables->table_list->table=tables->table; // to fix a problem in EXPLAIN
|
||||
else
|
||||
sl->exclude();
|
||||
t->db=(char *)"";
|
||||
t->derived=(SELECT_LEX *)0; // just in case ...
|
||||
table->file->info(HA_STATUS_VARIABLE);
|
||||
}
|
||||
}
|
||||
delete derived_result;
|
||||
|
Reference in New Issue
Block a user