diff options
author | Igor Babaev <igor@askmonty.org> | 2011-05-19 16:04:01 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2011-05-19 16:04:01 -0700 |
commit | 98f2be086807f2ee601ee4f2fdd17a44798c3627 (patch) | |
tree | 654b3370520994cbff52f0e86c6983083b54a858 /sql/sql_derived.cc | |
parent | a19ddf01176ec979b26ef367dd98f135e07049b7 (diff) | |
download | mariadb-git-98f2be086807f2ee601ee4f2fdd17a44798c3627.tar.gz |
Fixed compiler warnings.
Diffstat (limited to 'sql/sql_derived.cc')
-rw-r--r-- | sql/sql_derived.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/sql_derived.cc b/sql/sql_derived.cc index c2f4b0db606..ccb85e1d6f1 100644 --- a/sql/sql_derived.cc +++ b/sql/sql_derived.cc @@ -857,14 +857,13 @@ bool mysql_derived_create(THD *thd, LEX *lex, TABLE_LIST *derived) bool mysql_derived_fill(THD *thd, LEX *lex, TABLE_LIST *derived) { - TABLE *table= derived->table; SELECT_LEX_UNIT *unit= derived->get_unit(); bool res= FALSE; if (unit->executed && !unit->uncacheable && !unit->describe) return FALSE; /*check that table creation passed without problems. */ - DBUG_ASSERT(table && table->created); + DBUG_ASSERT(derived->table && derived->table->created); SELECT_LEX *first_select= unit->first_select(); select_union *derived_result= derived->derived_result; SELECT_LEX *save_current_select= lex->current_select; |