mirror of
https://github.com/MariaDB/server.git
synced 2026-04-29 11:45:32 +02:00
some code cleanup as per CTO's instructions plus a small bug fix with
a corresponding test case....
This commit is contained in:
parent
79f8a525a3
commit
a70a9ab637
4 changed files with 7 additions and 3 deletions
|
|
@ -118,7 +118,7 @@ int mysql_derived(THD *thd, LEX *lex, SELECT_LEX_UNIT *unit, TABLE_LIST *t)
|
|||
table->tmp_table=TMP_TABLE;
|
||||
if (!lex->describe)
|
||||
sl->exclude();
|
||||
t->db= (tables && tables->db && tables->db[0]) ? t->db : thd->db;
|
||||
t->db="";
|
||||
t->derived=(SELECT_LEX *)0; // just in case ...
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue