mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
some code cleanup as per CTO's instructions plus a small bug fix with
a corresponding test case....
This commit is contained in:
@ -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 ...
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user