diff options
author | sergefp@mysql.com <> | 2006-07-28 21:27:01 +0400 |
---|---|---|
committer | sergefp@mysql.com <> | 2006-07-28 21:27:01 +0400 |
commit | 699291a8e68b94cdfdc0cc2c9b865d736d808017 (patch) | |
tree | 43dd1049a05d7e894a1de909d7f8cf4eff44540a /mysql-test/r/func_if.result | |
parent | 1459784aba4bbf11fdc18d73ccc9f4cc735edbcd (diff) | |
download | mariadb-git-699291a8e68b94cdfdc0cc2c9b865d736d808017.tar.gz |
BUG#14940 "MySQL choose wrong index", v.2
- Make the range-et-al optimizer produce E(#table records after table
condition is applied),
- Make the join optimizer use this value,
- Add "filtered" column to EXPLAIN EXTENDED to show
fraction of records left after table condition is applied
- Adjust test results, add comments
Diffstat (limited to 'mysql-test/r/func_if.result')
-rw-r--r-- | mysql-test/r/func_if.result | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mysql-test/r/func_if.result b/mysql-test/r/func_if.result index eef380c8f52..81675d46c82 100644 --- a/mysql-test/r/func_if.result +++ b/mysql-test/r/func_if.result @@ -40,8 +40,8 @@ a aa aaa explain extended select if(u=1,st,binary st) s from t1 where st like "%a%" order by s; -id select_type table type possible_keys key key_len ref rows Extra -1 SIMPLE t1 ALL NULL NULL NULL NULL 7 Using where; Using filesort +id select_type table type possible_keys key key_len ref rows filtered Extra +1 SIMPLE t1 ALL NULL NULL NULL NULL 7 100.00 Using where; Using filesort Warnings: Note 1003 select if((`test`.`t1`.`u` = 1),`test`.`t1`.`st`,cast(`test`.`t1`.`st` as char charset binary)) AS `s` from `test`.`t1` where (`test`.`t1`.`st` like _latin1'%a%') order by if((`test`.`t1`.`u` = 1),`test`.`t1`.`st`,cast(`test`.`t1`.`st` as char charset binary)) select nullif(u, 1) from t1; @@ -54,8 +54,8 @@ NULL 0 0 explain extended select nullif(u, 1) from t1; -id select_type table type possible_keys key key_len ref rows Extra -1 SIMPLE t1 ALL NULL NULL NULL NULL 7 +id select_type table type possible_keys key key_len ref rows filtered Extra +1 SIMPLE t1 ALL NULL NULL NULL NULL 7 100.00 Warnings: Note 1003 select nullif(`test`.`t1`.`u`,1) AS `nullif(u, 1)` from `test`.`t1` drop table t1; |