mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge branch '10.11' into 11.0
This commit is contained in:
@ -659,7 +659,9 @@ create table t3 (a int not null, primary key(a));
|
||||
insert into t3 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
||||
|
||||
flush status;
|
||||
--disable_ps2_protocol
|
||||
select * from t1, t2, t3 where t3.a=t1.a and t2.a=t1.b;
|
||||
--enable_ps2_protocol
|
||||
explain select * from t1, t2, t3 where t3.a=t1.a and t2.a=t1.b;
|
||||
--echo We expect rnd_next=5, and read_key must be 0 because of short-cutting:
|
||||
show status like 'Handler_read%';
|
||||
@ -962,7 +964,9 @@ ANALYZE TABLE t1,t2;
|
||||
# Handler_read% counts
|
||||
explain SELECT * FROM t1 JOIN t2 ON t1.v = t2.v WHERE t2.v IS NULL ORDER BY 1;
|
||||
FLUSH STATUS;
|
||||
--disable_ps2_protocol
|
||||
SELECT * FROM t1 JOIN t2 ON t1.v = t2.v WHERE t2.v IS NULL ORDER BY 1;
|
||||
--enable_ps2_protocol
|
||||
SHOW STATUS LIKE 'Handler_read_%';
|
||||
DROP TABLE t1, t2;
|
||||
|
||||
|
Reference in New Issue
Block a user