diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2019-02-28 21:50:00 +0100 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2019-02-28 21:50:00 +0100 |
commit | 7b5c63856b324281a3b0533b7b90fb6c130fcc66 (patch) | |
tree | cf7150ac4ac72de333cb624e5a70f058546e9cc5 /sql/sql_derived.cc | |
parent | d9d83f1d92b696ef56f4944df036b8a78364ebb4 (diff) | |
parent | cb11b3fbe9d4dde776cb8f2c0d6f83a569655efc (diff) | |
download | mariadb-git-7b5c63856b324281a3b0533b7b90fb6c130fcc66.tar.gz |
Merge branch '5.5' into 10.0
Diffstat (limited to 'sql/sql_derived.cc')
-rw-r--r-- | sql/sql_derived.cc | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/sql/sql_derived.cc b/sql/sql_derived.cc index 7ad0b4b4c69..b545adf5a2d 100644 --- a/sql/sql_derived.cc +++ b/sql/sql_derived.cc @@ -91,6 +91,7 @@ mysql_handle_derived(LEX *lex, uint phases) sl= sl->next_select_in_list()) { TABLE_LIST *cursor= sl->get_table_list(); + sl->changed_elements|= TOUCHED_SEL_DERIVED; /* DT_MERGE_FOR_INSERT is not needed for views/derived tables inside subqueries. Views and derived tables of subqueries should be @@ -201,36 +202,6 @@ mysql_handle_single_derived(LEX *lex, TABLE_LIST *derived, uint phases) /** - Run specified phases for derived tables/views in the given list - - @param lex LEX for this thread - @param table_list list of derived tables/view to handle - @param phase_map phases to process tables/views through - - @details - This function runs phases specified by the 'phases_map' on derived - tables/views found in the 'dt_list' with help of the - TABLE_LIST::handle_derived function. - 'lex' is passed as an argument to the TABLE_LIST::handle_derived. - - @return FALSE ok - @return TRUE error -*/ - -bool -mysql_handle_list_of_derived(LEX *lex, TABLE_LIST *table_list, uint phases) -{ - for (TABLE_LIST *tl= table_list; tl; tl= tl->next_local) - { - if (tl->is_view_or_derived() && - tl->handle_derived(lex, phases)) - return TRUE; - } - return FALSE; -} - - -/** Merge a derived table/view into the embedding select @param thd thread handle |