mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge branch '10.4' into 10.5
This commit is contained in:
@ -59,10 +59,10 @@ a
|
||||
869751
|
||||
select * from t1 where a in (869751,736494,226312,802616);
|
||||
a
|
||||
869751
|
||||
736494
|
||||
226312
|
||||
736494
|
||||
802616
|
||||
869751
|
||||
alter table t1 engine=myisam;
|
||||
explain select * from t1 where a in (869751,736494,226312,802616);
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
@ -178,7 +178,7 @@ id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 range btn btn 10 NULL 1 Using where
|
||||
explain select * from t1 where btn like "h%";
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 ALL btn NULL NULL NULL # Using where
|
||||
1 SIMPLE t1 range btn btn 10 NULL # Using where
|
||||
explain select * from t1 where btn like "a%";
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 range btn btn 10 NULL 1 Using where
|
||||
@ -350,11 +350,11 @@ insert into t1 values (869751),(736494),(226312),(802616),(728912);
|
||||
alter table t1 add unique uniq_id using BTREE (a);
|
||||
select 0+a from t1 where a > 736494;
|
||||
0+a
|
||||
869751
|
||||
802616
|
||||
869751
|
||||
explain select 0+a from t1 where a > 736494;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 ALL uniq_id NULL NULL NULL 5 Using where
|
||||
1 SIMPLE t1 range uniq_id uniq_id 8 NULL 3 Using where
|
||||
select 0+a from t1 where a = 736494;
|
||||
0+a
|
||||
736494
|
||||
@ -370,13 +370,13 @@ id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 range uniq_id uniq_id 8 NULL 2 Using where
|
||||
select 0+a from t1 where a in (869751,736494,226312,802616);
|
||||
0+a
|
||||
869751
|
||||
736494
|
||||
226312
|
||||
736494
|
||||
802616
|
||||
869751
|
||||
explain select 0+a from t1 where a in (869751,736494,226312,802616);
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 ALL uniq_id NULL NULL NULL 5 Using where
|
||||
1 SIMPLE t1 range uniq_id uniq_id 8 NULL 4 Using where
|
||||
drop table t1;
|
||||
End of 5.3 tests
|
||||
create table t1 (id int, a varchar(300) not null, key using btree(a)) engine=heap;
|
||||
|
@ -428,14 +428,14 @@ id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 range uniq_id uniq_id 8 NULL 2 Using where
|
||||
select 0+a from t1 where a in (869751,736494,226312,802616,728912);
|
||||
0+a
|
||||
869751
|
||||
736494
|
||||
226312
|
||||
802616
|
||||
728912
|
||||
736494
|
||||
802616
|
||||
869751
|
||||
explain select 0+a from t1 where a in (869751,736494,226312,802616,728912);
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 ALL uniq_id NULL NULL NULL 5 Using where
|
||||
1 SIMPLE t1 range uniq_id uniq_id 8 NULL 5 Using where
|
||||
drop table t1;
|
||||
End of 5.3 tests
|
||||
#
|
||||
|
Reference in New Issue
Block a user