summaryrefslogtreecommitdiff
path: root/sql/item_func.h
diff options
context:
space:
mode:
authorVarun Gupta <varunraiko1803@gmail.com>2018-03-22 03:01:53 +0530
committerVarun Gupta <varunraiko1803@gmail.com>2018-03-22 03:01:53 +0530
commitddc5c65333a4add28907ccb82054ecba0ff6b873 (patch)
tree2332a2142cffe7c466cad586ca5af38a042d5a7b /sql/item_func.h
parentf3994b74327eef37fa6010368f7f8db044cf70f8 (diff)
downloadmariadb-git-ddc5c65333a4add28907ccb82054ecba0ff6b873.tar.gz
MDEV-14779: using left join causes incorrect results with materialization and derived tables
Conversion of a subquery to a semi-join is blocked when we have an IN subquery predicate in the on_expr of an outer join. Currently this scenario is handled but the cases when an IN subquery predicate is wrapped inside a Item_in_optimizer item then this blocking is not done.
Diffstat (limited to 'sql/item_func.h')
-rw-r--r--sql/item_func.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_func.h b/sql/item_func.h
index 2157c6b6b6d..60122f03e0b 100644
--- a/sql/item_func.h
+++ b/sql/item_func.h
@@ -66,7 +66,7 @@ public:
NOW_FUNC, TRIG_COND_FUNC,
SUSERVAR_FUNC, GUSERVAR_FUNC, COLLATE_FUNC,
EXTRACT_FUNC, CHAR_TYPECAST_FUNC, FUNC_SP, UDF_FUNC,
- NEG_FUNC, GSYSVAR_FUNC };
+ NEG_FUNC, GSYSVAR_FUNC, IN_OPTIMIZER_FUNC };
enum optimize_type { OPTIMIZE_NONE,OPTIMIZE_KEY,OPTIMIZE_OP, OPTIMIZE_NULL,
OPTIMIZE_EQUAL };
enum Type type() const { return FUNC_ITEM; }