summaryrefslogtreecommitdiff
path: root/sql/item_subselect.h
diff options
context:
space:
mode:
authorGalina Shalygina <galashalygina@gmail.com>2017-10-28 20:54:18 +0200
committerGalina Shalygina <galashalygina@gmail.com>2017-10-28 20:54:18 +0200
commita4ded0a9b57ee7a801ce20cffdaee21fee281123 (patch)
tree05470ab32497f0c4cde65905ae92a3c289aaeb00 /sql/item_subselect.h
parent75370a58f4e4ac90e0fe441676917468afca5576 (diff)
downloadmariadb-git-a4ded0a9b57ee7a801ce20cffdaee21fee281123.tar.gz
Mistakes corrected.
TVC can be used in IN subquery and in PARTITION BY struct now. Special variable to control working of optimization added.
Diffstat (limited to 'sql/item_subselect.h')
-rw-r--r--sql/item_subselect.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/item_subselect.h b/sql/item_subselect.h
index cb60b646979..cdba3cd737b 100644
--- a/sql/item_subselect.h
+++ b/sql/item_subselect.h
@@ -266,6 +266,7 @@ public:
Item* build_clone(THD *thd, MEM_ROOT *mem_root) { return 0; }
Item* get_copy(THD *thd, MEM_ROOT *mem_root) { return 0; }
+ bool wrap_tvc_in_derived_table(THD *thd, st_select_lex *tvc_sl);
friend class select_result_interceptor;
friend class Item_in_optimizer;
@@ -874,6 +875,7 @@ public:
virtual enum_engine_type engine_type() { return SINGLE_SELECT_ENGINE; }
int get_identifier();
void force_reexecution();
+ void change_select(st_select_lex *new_select) { select_lex= new_select; }
friend class subselect_hash_sj_engine;
friend class Item_in_subselect;