summaryrefslogtreecommitdiff
path: root/sql/opt_subselect.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2019-03-21 21:06:01 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2019-03-21 21:06:01 +0200
commit8c493a910fd224235b3eddb4bacac0592146cac6 (patch)
tree1ba77b09ad11054ae1f6767abc2441fcea54da07 /sql/opt_subselect.cc
parente9c494c8438c7fcfe8edd197c9a6919be4a02ab0 (diff)
parent925b5030583e3622705621b4a0e56d6ccc3c5fcc (diff)
downloadmariadb-git-8c493a910fd224235b3eddb4bacac0592146cac6.tar.gz
Merge 10.0 into 10.1
Diffstat (limited to 'sql/opt_subselect.cc')
-rw-r--r--sql/opt_subselect.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/opt_subselect.cc b/sql/opt_subselect.cc
index 85f5645949e..852f91efc00 100644
--- a/sql/opt_subselect.cc
+++ b/sql/opt_subselect.cc
@@ -675,7 +675,7 @@ int check_and_do_in_subquery_rewrites(JOIN *join)
select_lex->outer_select()->join && // 6
parent_unit->first_select()->leaf_tables.elements && // 7
!in_subs->has_strategy() && // 8
- select_lex->outer_select()->leaf_tables.elements && // 9
+ select_lex->outer_select()->table_list.first && // 9
!((join->select_options | // 10
select_lex->outer_select()->join->select_options) // 10
& SELECT_STRAIGHT_JOIN) && // 10