1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +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:
Sinisa@sinisa.nasamreza.org
2002-11-12 14:40:32 +02:00
parent 8fa715304f
commit 7bd4fb813a
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 ...
}
}