summaryrefslogtreecommitdiff
path: root/sql/item_subselect.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/item_subselect.h')
-rw-r--r--sql/item_subselect.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/item_subselect.h b/sql/item_subselect.h
index b5823dfb194..7e504d09565 100644
--- a/sql/item_subselect.h
+++ b/sql/item_subselect.h
@@ -149,6 +149,10 @@ public:
Item_subselect(THD *thd);
virtual subs_type substype() { return UNKNOWN_SUBS; }
+ bool is_exists_predicate()
+ {
+ return substype() == Item_subselect::EXISTS_SUBS;
+ }
bool is_in_predicate()
{
return get_IN_subquery() != NULL;