diff options
Diffstat (limited to 'sql/table.cc')
-rw-r--r-- | sql/table.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/table.cc b/sql/table.cc index bb336a0b9da..23761e02831 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -5051,6 +5051,10 @@ void TABLE_LIST::set_check_merged() void TABLE_LIST::set_check_materialized() { + DBUG_ENTER("TABLE_LIST::set_check_materialized"); + SELECT_LEX_UNIT *derived= this->derived; + if (view) + derived= &view->unit; DBUG_ASSERT(derived); if (!derived->first_select()->exclude_from_table_unique_test) derived->set_unique_exclude(); @@ -5063,6 +5067,7 @@ void TABLE_LIST::set_check_materialized() derived->first_select()->first_inner_unit()->first_select()-> exclude_from_table_unique_test); } + DBUG_VOID_RETURN; } TABLE *TABLE_LIST::get_real_join_table() |