diff options
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r-- | sql/sql_select.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h index f6862c46554..f67b79fff47 100644 --- a/sql/sql_select.h +++ b/sql/sql_select.h @@ -1083,6 +1083,11 @@ public: double *read_time_arg, double *record_count_arg); /* defined in opt_subselect.cc */ bool transform_max_min_subquery(); + /* True if this JOIN is a subquery under an IN predicate. */ + bool is_in_subquery() + { + return (unit->item && unit->item->is_in_predicate()); + } private: /** |