diff options
author | unknown <sergefp@mysql.com> | 2004-06-22 04:47:28 +0400 |
---|---|---|
committer | unknown <sergefp@mysql.com> | 2004-06-22 04:47:28 +0400 |
commit | cfecdcd36a2dbaba863c178d1170782c1f3e9fbc (patch) | |
tree | b87bd41117f45565a9107145e291d6bd1d0558c6 /mysql-test/r/join_outer.result | |
parent | c4cd310f7f9088572c68f6de139a4c63baf1c3bf (diff) | |
download | mariadb-git-cfecdcd36a2dbaba863c178d1170782c1f3e9fbc.tar.gz |
Range optimizer fix:
If cost(full_scan_on_shortest_covering_index) < cost(best_range_scan) < cost(full_table_scan)
use full_scan_on_shortest_covering_index
(before this fix best_range_scan was used)
Diffstat (limited to 'mysql-test/r/join_outer.result')
-rw-r--r-- | mysql-test/r/join_outer.result | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mysql-test/r/join_outer.result b/mysql-test/r/join_outer.result index 9d7c3d98952..6e0afd75a33 100644 --- a/mysql-test/r/join_outer.result +++ b/mysql-test/r/join_outer.result @@ -634,7 +634,7 @@ insert into t2 values (10,1),(20,2),(30,3); explain select * from t2 left join t1 on t1.fooID = t2.fooID and t1.fooID = 30; id select_type table type possible_keys key key_len ref rows Extra 1 SIMPLE t2 index NULL PRIMARY 4 NULL 3 Using index -1 SIMPLE t1 eq_ref PRIMARY PRIMARY 2 const 1 Using where; Using index +1 SIMPLE t1 eq_ref PRIMARY PRIMARY 2 const 1 Using index select * from t2 left join t1 on t1.fooID = t2.fooID and t1.fooID = 30; fooID barID fooID 10 1 NULL |