diff options
author | unknown <serg@serg.mylan> | 2003-07-25 14:32:03 +0200 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2003-07-25 14:32:03 +0200 |
commit | 2763b52d0a0ad85818f5c8259b4dd1d060e568e7 (patch) | |
tree | 5239193e38bab6289ce7d9bb40182198e71c9992 /sql | |
parent | 9dce7500d7c18d3ef08a914e47e16462284d21d0 (diff) | |
download | mariadb-git-2763b52d0a0ad85818f5c8259b4dd1d060e568e7.tar.gz |
outer join, impossible on condition, where, and usable key for range
bug#926
Diffstat (limited to 'sql')
-rw-r--r-- | sql/sql_select.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc index 4008bf75f01..6675a310464 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -2641,9 +2641,6 @@ make_join_select(JOIN *join,SQL_SELECT *select,COND *cond) join->thd->select_limit < join->best_positions[i].records_read && !(join->select_options & OPTION_FOUND_ROWS))) { - /* Join with outer join condition */ - COND *orig_cond=sel->cond; - sel->cond=and_conds(sel->cond,tab->on_expr); if (sel->test_quick_select(tab->keys, used_tables & ~ current_map, (join->select_options & @@ -2651,7 +2648,6 @@ make_join_select(JOIN *join,SQL_SELECT *select,COND *cond) HA_POS_ERROR : join->thd->select_limit)) < 0) DBUG_RETURN(1); // Impossible range - sel->cond=orig_cond; /* Fix for EXPLAIN */ if (sel->quick) join->best_positions[i].records_read= sel->quick->records; |