diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2011-04-05 12:20:03 +0400 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2011-04-05 12:20:03 +0400 |
commit | 151207134b710b94e3e061311fed072d5fcc82ea (patch) | |
tree | 1212692659c1104accafd53a77815946f7d74645 /sql/item_subselect.h | |
parent | 409902f8843c49be3c9e81f49b59fad6298b874a (diff) | |
download | mariadb-git-151207134b710b94e3e061311fed072d5fcc82ea.tar.gz |
MWL#90: Address review feedback part #18
Diffstat (limited to 'sql/item_subselect.h')
-rw-r--r-- | sql/item_subselect.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/sql/item_subselect.h b/sql/item_subselect.h index 559e8747068..339b264141a 100644 --- a/sql/item_subselect.h +++ b/sql/item_subselect.h @@ -371,12 +371,6 @@ public: See also THD::emb_on_expr_nest. */ TABLE_LIST *emb_on_expr_nest; - /* - Location of the subquery predicate. It is either - - pointer to join nest if the subquery predicate is in the ON expression - - (TABLE_LIST*)1 if the predicate is in the WHERE. - */ - //TABLE_LIST *expr_join_nest; /* Types of left_expr and subquery's select list allow to perform subquery materialization. Currently, we set this to FALSE when it as well could @@ -402,6 +396,18 @@ public: TRUE<=>this is a flattenable semi-join, false overwise. */ bool is_flattenable_semijoin; + + /* + Used to determine how this subselect item is represented in the item tree, + in case there is a need to locate it there and replace with something else. + Two options are possible: + 1. This item is there 'as-is'. + 1. This item is wrapped within Item_in_optimizer. + */ + Item *original_item() + { + return is_flattenable_semijoin ? (Item*)this : (Item*)optimizer; + } bool *get_cond_guard(int i) { |