diff options
author | bell@sanja.is.com.ua <> | 2003-10-27 01:01:27 +0200 |
---|---|---|
committer | bell@sanja.is.com.ua <> | 2003-10-27 01:01:27 +0200 |
commit | 2efab5b67de7eecb4f098a75628e826b0c3e9b05 (patch) | |
tree | 3656322cc4f0b82348b4b8f36e3cc1239622da0c /sql/item_subselect.h | |
parent | b9156c18713eaf88985be1794a189462216deef7 (diff) | |
download | mariadb-git-2efab5b67de7eecb4f098a75628e826b0c3e9b05.tar.gz |
fixed ALL/ANY optimisation with union (BUG#1668)
code cleanup
Diffstat (limited to 'sql/item_subselect.h')
-rw-r--r-- | sql/item_subselect.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sql/item_subselect.h b/sql/item_subselect.h index 3a543ff288c..7e735165c02 100644 --- a/sql/item_subselect.h +++ b/sql/item_subselect.h @@ -33,7 +33,6 @@ typedef Item_bool_func2* (*compare_func_creator)(Item*, Item*); class Item_subselect :public Item_result_field { - my_bool engine_owner; /* Is this item owner of engine */ my_bool value_assigned; /* value already assigned to subselect */ protected: /* thread handler, will be assigned in fix_fields only */ @@ -90,6 +89,8 @@ public: virtual void fix_length_and_dec(); table_map used_tables() const; bool const_item() const; + inline table_map get_used_tables_cache() { return used_tables_cache; } + inline bool get_const_item_cache() { return const_item_cache; } void update_used_tables(); void print(String *str) { @@ -144,10 +145,11 @@ public: }; /* used in static ALL/ANY optimisation */ -class Item_maxmin_subselect: public Item_singlerow_subselect +class Item_maxmin_subselect :public Item_singlerow_subselect { public: - Item_maxmin_subselect(st_select_lex *select_lex, bool max); + Item_maxmin_subselect(Item_subselect *parent, + st_select_lex *select_lex, bool max); }; /* exists subselect */ |