summaryrefslogtreecommitdiff
path: root/sql/item_cmpfunc.h
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-03-23 11:44:29 +0100
committerSergei Golubchik <serg@mariadb.org>2018-03-23 11:44:29 +0100
commita2e47f8c41e60fb0eeaa01cdd41fc07b9c963768 (patch)
tree1846a0fdfdff14207698f563376afbdae5d33c8c /sql/item_cmpfunc.h
parent04921000594dcbdf23340850b9284fd30ccdb0fd (diff)
parentddc5c65333a4add28907ccb82054ecba0ff6b873 (diff)
downloadmariadb-git-a2e47f8c41e60fb0eeaa01cdd41fc07b9c963768.tar.gz
Merge branch '5.5' into 10.0
Diffstat (limited to 'sql/item_cmpfunc.h')
-rw-r--r--sql/item_cmpfunc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/item_cmpfunc.h b/sql/item_cmpfunc.h
index 6d81c7acc40..6cd7e0e3e78 100644
--- a/sql/item_cmpfunc.h
+++ b/sql/item_cmpfunc.h
@@ -260,6 +260,7 @@ public:
bool is_null();
longlong val_int();
void cleanup();
+ enum Functype functype() const { return IN_OPTIMIZER_FUNC; }
const char *func_name() const { return "<in_optimizer>"; }
Item_cache **get_cache() { return &cache; }
void keep_top_level_cache();
@@ -277,6 +278,10 @@ public:
void reset_cache() { cache= NULL; }
virtual void print(String *str, enum_query_type query_type);
void restore_first_argument();
+ Item* get_wrapped_in_subselect_item()
+ {
+ return args[1];
+ }
};
class Comp_creator