summaryrefslogtreecommitdiff
path: root/sql/item_subselect.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2015-04-22 12:40:23 +0400
committerAlexander Barkov <bar@mariadb.org>2015-04-22 12:40:23 +0400
commitfc1f301e91367be5de7b5dc510acb1a6e22d59b5 (patch)
treede29ce0100b053cc9617ea04f2555ea6140912ff /sql/item_subselect.h
parente7a7ea7ec107089c42315064fa238ec2cca92110 (diff)
downloadmariadb-git-fc1f301e91367be5de7b5dc510acb1a6e22d59b5.tar.gz
MDEV-8024 Remove excessive update_used_tables() calls
Diffstat (limited to 'sql/item_subselect.h')
-rw-r--r--sql/item_subselect.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/sql/item_subselect.h b/sql/item_subselect.h
index add2e0b6f9b..47a143e172a 100644
--- a/sql/item_subselect.h
+++ b/sql/item_subselect.h
@@ -44,7 +44,8 @@ class Cached_item;
/* base class for subselects */
-class Item_subselect :public Item_result_field
+class Item_subselect :public Item_result_field,
+ protected Used_tables_and_const_cache
{
bool value_assigned; /* value already assigned to subselect */
bool own_engine; /* the engine was not taken from other Item_subselect */
@@ -53,16 +54,12 @@ protected:
THD *thd;
/* old engine if engine was changed */
subselect_engine *old_engine;
- /* cache of used external tables */
- table_map used_tables_cache;
/* allowed number of columns (1 for single value subqueries) */
uint max_columns;
/* where subquery is placed */
enum_parsing_place parsing_place;
/* work with 'substitution' */
bool have_to_be_excluded;
- /* cache of constant state */
- bool const_item_cache;
bool inside_first_fix_fields;
bool done_first_fix_fields;