1
0
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:
unknown
2002-11-12 14:40:32 +02:00
parent 79f8a525a3
commit a70a9ab637
4 changed files with 7 additions and 3 deletions

View File

@ -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 ...
}
}