diff options
author | Sinisa@sinisa.nasamreza.org <> | 2002-11-30 18:46:24 +0200 |
---|---|---|
committer | Sinisa@sinisa.nasamreza.org <> | 2002-11-30 18:46:24 +0200 |
commit | a968d7c2eac9e1766f85cebf8d4aa4019c543a84 (patch) | |
tree | 8c175da8af2a3a22c0a1c2dcb960bfb557c86049 /sql/sql_derived.cc | |
parent | 02c61db6568d05b8f741d0de8933daa8fa0332dd (diff) | |
download | mariadb-git-a968d7c2eac9e1766f85cebf8d4aa4019c543a84.tar.gz |
many bug fixes
Diffstat (limited to 'sql/sql_derived.cc')
-rw-r--r-- | sql/sql_derived.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_derived.cc b/sql/sql_derived.cc index 2176740e67b..78356a0d725 100644 --- a/sql/sql_derived.cc +++ b/sql/sql_derived.cc @@ -107,9 +107,12 @@ int mysql_derived(THD *thd, LEX *lex, SELECT_LEX_UNIT *unit, TABLE_LIST *t) table->derived_select_number= sl->select_number; table->tmp_table=TMP_TABLE; if (lex->describe) + tables->table_list->table=tables->table; // to fix a problem in EXPLAIN + else sl->exclude(); t->db=(char *)""; t->derived=(SELECT_LEX *)0; // just in case ... + table->file->info(HA_STATUS_VARIABLE); } } delete derived_result; |