diff options
Diffstat (limited to 'sql/sql_select.cc')
-rw-r--r-- | sql/sql_select.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc index 3596fdc0c05..64a0f9e6df1 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -2328,7 +2328,8 @@ make_join_select(JOIN *join,SQL_SELECT *select,COND *cond) if ((tab->keys & ~ tab->const_keys && i > 0) || tab->const_keys && i == join->const_tables && - join->thd->select_limit < join->best_positions[i].records_read) + join->thd->select_limit < join->best_positions[i].records_read && + join->tables > 1) { /* Join with outer join condition */ COND *orig_cond=sel->cond; |