1
0
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:
Sinisa@sinisa.nasamreza.org
2002-11-30 18:46:24 +02:00
parent 02c61db656
commit a968d7c2ea
6 changed files with 11 additions and 9 deletions

View File

@ -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;