1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

small bug fix

This commit is contained in:
unknown
2002-11-11 14:04:50 +02:00
parent f980950bb3
commit 20ea534d0c
2 changed files with 10 additions and 7 deletions

View File

@ -111,6 +111,7 @@ int mysql_derived(THD *thd, LEX *lex, SELECT_LEX_UNIT *unit, TABLE_LIST *t)
t->real_name=table->real_name;
t->table=table;
table->derived_select_number= sl->select_number;
table->tmp_table=TMP_TABLE;
if (!lex->describe)
sl->exclude();
t->db= (tables && tables->db && tables->db[0]) ? t->db : thd->db;