mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 03:21:53 +01:00
refs #5620 ignore number of rows in explain for the 2458.test
git-svn-id: file:///svn/mysql/tests/mysql-test@50755 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
a413c5c205
commit
638f48ad5a
2 changed files with 6 additions and 4 deletions
|
@ -10,13 +10,13 @@ insert into t1 values (1,1),(2,2),(3,3);
|
|||
insert into t2 values (1),(2),(3);
|
||||
explain select t1.* from t1 left join t2 using(f1) group by t1.f1;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 index NULL PRIMARY 4 NULL 1
|
||||
1 SIMPLE t2 ref f1 f1 4 test.t1.f1 2 Using index
|
||||
1 SIMPLE t1 index NULL PRIMARY 4 NULL NA
|
||||
1 SIMPLE t2 ref f1 f1 4 test.t1.f1 NA Using index
|
||||
alter table t1 drop primary key;
|
||||
alter table t1 add clustering index (f1);
|
||||
explain select t1.* from t1 left join t2 using(f1) group by t1.f1;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 index NULL f1 4 NULL 1
|
||||
1 SIMPLE t2 ref f1 f1 4 test.t1.f1 2 Using index
|
||||
1 SIMPLE t1 index NULL f1 4 NULL NA
|
||||
1 SIMPLE t2 ref f1 f1 4 test.t1.f1 NA Using index
|
||||
drop table t1,t2;
|
||||
#
|
||||
|
|
|
@ -15,9 +15,11 @@ create table t1(f1 int not null primary key, f2 int);
|
|||
create table t2(f1 int not null, key (f1));
|
||||
insert into t1 values (1,1),(2,2),(3,3);
|
||||
insert into t2 values (1),(2),(3);
|
||||
replace_column 9 NA;
|
||||
explain select t1.* from t1 left join t2 using(f1) group by t1.f1;
|
||||
alter table t1 drop primary key;
|
||||
alter table t1 add clustering index (f1);
|
||||
replace_column 9 NA;
|
||||
explain select t1.* from t1 left join t2 using(f1) group by t1.f1;
|
||||
drop table t1,t2;
|
||||
--echo #
|
||||
|
|
Loading…
Add table
Reference in a new issue