diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2019-03-01 15:52:06 +0100 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2019-03-01 15:52:06 +0100 |
commit | f2e1451740d417f1c9ea8626d937fbcacc91bb55 (patch) | |
tree | cd915badee79727c047208a7804181543cdb9c27 /sql/sql_derived.cc | |
parent | e39d6e0c53bccaf0c6b2a0341f8deb420f5e79be (diff) | |
parent | 2d34713294d5339d1459911a46fa20395443b3c7 (diff) | |
download | mariadb-git-f2e1451740d417f1c9ea8626d937fbcacc91bb55.tar.gz |
Merge branch '10.0' into 10.1
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 b29e676bfc7..c93aa132e37 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 |