mirror of
https://github.com/MariaDB/server.git
synced 2026-04-29 11:45:32 +02:00
some bug fixes and tests for those.
I am pushing now, because : * I have a fix for crashing bug * Sanja will destroy my changes in sub-select test ... ;) mysql-test/r/derived.result: tests for recent bugs mysql-test/r/subselect.result: tests for recent bugs mysql-test/t/derived.test: tests for recent bugs mysql-test/t/subselect.test: tests for recent bugs sql/sql_derived.cc: Luckily, we have `make test` so that my last changes could be re-checked
This commit is contained in:
parent
b496692663
commit
b790bc24d8
5 changed files with 39 additions and 10 deletions
|
|
@ -107,7 +107,10 @@ 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
|
||||
{
|
||||
if (tables)
|
||||
tables->table_list->table=tables->table; // to fix a problem in EXPLAIN
|
||||
}
|
||||
else
|
||||
sl->exclude();
|
||||
t->db=(char *)"";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue