Commit 9578a332 authored by Sergey Petrunya's avatar Sergey Petrunya

Fix buildbot failure: make selectivity.test and selectivity_innodb.test work when

table names are case-insensitive.
parent 9e820201
...@@ -1400,12 +1400,12 @@ Table Op Msg_type Msg_text ...@@ -1400,12 +1400,12 @@ Table Op Msg_type Msg_text
test.t2 analyze status Engine-independent statistics collected test.t2 analyze status Engine-independent statistics collected
test.t2 analyze status OK test.t2 analyze status OK
explain extended explain extended
select * from t2 A straight_join t2 B where A.a is null; select * from t2 a straight_join t2 b where a.a is null;
id select_type table type possible_keys key key_len ref rows filtered Extra id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE A ALL NULL NULL NULL NULL 1000 100.00 Using where 1 SIMPLE a ALL NULL NULL NULL NULL 1000 100.00 Using where
1 SIMPLE B ALL NULL NULL NULL NULL 1000 100.00 Using join buffer (flat, BNL join) 1 SIMPLE b ALL NULL NULL NULL NULL 1000 100.00 Using join buffer (flat, BNL join)
Warnings: Warnings:
Note 1003 select `test`.`A`.`a` AS `a`,`test`.`A`.`b` AS `b`,`test`.`B`.`a` AS `a`,`test`.`B`.`b` AS `b` from `test`.`t2` `A` straight_join `test`.`t2` `B` where isnull(`test`.`A`.`a`) Note 1003 select `test`.`a`.`a` AS `a`,`test`.`a`.`b` AS `b`,`test`.`b`.`a` AS `a`,`test`.`b`.`b` AS `b` from `test`.`t2` `a` straight_join `test`.`t2` `b` where isnull(`test`.`a`.`a`)
set histogram_size=@save_histogram_size; set histogram_size=@save_histogram_size;
set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity; set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
drop table t0,t1,t2; drop table t0,t1,t2;
......
...@@ -1410,12 +1410,12 @@ Table Op Msg_type Msg_text ...@@ -1410,12 +1410,12 @@ Table Op Msg_type Msg_text
test.t2 analyze status Engine-independent statistics collected test.t2 analyze status Engine-independent statistics collected
test.t2 analyze status OK test.t2 analyze status OK
explain extended explain extended
select * from t2 A straight_join t2 B where A.a is null; select * from t2 a straight_join t2 b where a.a is null;
id select_type table type possible_keys key key_len ref rows filtered Extra id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE A ALL NULL NULL NULL NULL 1000 100.00 Using where 1 SIMPLE a ALL NULL NULL NULL NULL 1000 100.00 Using where
1 SIMPLE B ALL NULL NULL NULL NULL 1000 100.00 Using join buffer (flat, BNL join) 1 SIMPLE b ALL NULL NULL NULL NULL 1000 100.00 Using join buffer (flat, BNL join)
Warnings: Warnings:
Note 1003 select `test`.`A`.`a` AS `a`,`test`.`A`.`b` AS `b`,`test`.`B`.`a` AS `a`,`test`.`B`.`b` AS `b` from `test`.`t2` `A` straight_join `test`.`t2` `B` where isnull(`test`.`A`.`a`) Note 1003 select `test`.`a`.`a` AS `a`,`test`.`a`.`b` AS `b`,`test`.`b`.`a` AS `a`,`test`.`b`.`b` AS `b` from `test`.`t2` `a` straight_join `test`.`t2` `b` where isnull(`test`.`a`.`a`)
set histogram_size=@save_histogram_size; set histogram_size=@save_histogram_size;
set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity; set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
drop table t0,t1,t2; drop table t0,t1,t2;
......
...@@ -935,7 +935,7 @@ set optimizer_use_condition_selectivity=4; ...@@ -935,7 +935,7 @@ set optimizer_use_condition_selectivity=4;
analyze table t2 persistent for all; analyze table t2 persistent for all;
explain extended explain extended
select * from t2 A straight_join t2 B where A.a is null; select * from t2 a straight_join t2 b where a.a is null;
set histogram_size=@save_histogram_size; set histogram_size=@save_histogram_size;
set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity; set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment