summaryrefslogtreecommitdiff
path: root/sql/sql_select.h
diff options
context:
space:
mode:
authorunknown <timour@askmonty.org>2011-05-23 10:56:05 +0300
committerunknown <timour@askmonty.org>2011-05-23 10:56:05 +0300
commit742dfc92a2de5ae9bc8b4d115d2bbd6dbb401bcc (patch)
tree5a721674c555ba6b621b8bb6b421e78cbd250112 /sql/sql_select.h
parent56c0e19ed0678b7e761979415a914771406b4900 (diff)
downloadmariadb-git-742dfc92a2de5ae9bc8b4d115d2bbd6dbb401bcc.tar.gz
MWL#89: Address review feedback (by Sergey Petrunia)
mysql-test/r/subselect4.result: Moved test case for LP BUG#718593 into the correct test file subselect_mat_cost_bugs.test. mysql-test/t/subselect4.test: Moved test case for LP BUG#718593 into the correct test file subselect_mat_cost_bugs.test.
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r--sql/sql_select.h5
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:
/**