diff options
author | Igor Babaev <igor@askmonty.org> | 2011-07-16 23:57:43 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2011-07-16 23:57:43 -0700 |
commit | d37465a9cc458ab215105de22875ce0a64c0efc2 (patch) | |
tree | 2fc2c3e0ee8a246b65001039b7651a2f38091608 /sql/sql_select.h | |
parent | 6e5413853e9788b7e86808c8765983f8724122d8 (diff) | |
download | mariadb-git-d37465a9cc458ab215105de22875ce0a64c0efc2.tar.gz |
Fixed LP bug #794901.
Also:
1. simplified the code of the function mysql_derived_merge_for_insert.
2. moved merge of views/dt for multi-update/delete to the prepare stage.
3. the list of the references to the candidates for semi-join now is
allocated in the statement memory.
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r-- | sql/sql_select.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h index ae21db849ff..cd91478fcf5 100644 --- a/sql/sql_select.h +++ b/sql/sql_select.h @@ -964,11 +964,6 @@ public: bool optimized; ///< flag to avoid double optimization in EXPLAIN bool initialized; ///< flag to avoid double init_execution calls - /* - Subqueries that will need to be converted to semi-join nests, including - those converted to jtbm nests. The list is emptied when conversion is done. - */ - Array<Item_in_subselect> sj_subselects; /* Additional WHERE and HAVING predicates to be considered for IN=>EXISTS subquery transformation of a JOIN object. @@ -998,7 +993,7 @@ public: JOIN(THD *thd_arg, List<Item> &fields_arg, ulonglong select_options_arg, select_result *result_arg) - :fields_list(fields_arg), sj_subselects(thd_arg->mem_root, 4) + :fields_list(fields_arg) { init(thd_arg, fields_arg, select_options_arg, result_arg); } |