mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
Make test plan stabil.
This commit is contained in:
parent
f8af7c6f48
commit
4bc960831d
2 changed files with 4 additions and 0 deletions
|
@ -317,6 +317,7 @@ INSERT INTO t1 VALUES
|
|||
CREATE TABLE t2 (a varchar(4), b varchar(50), PRIMARY KEY (b,a), KEY (a)) ENGINE=InnoDB;
|
||||
INSERT INTO t2 VALUES
|
||||
('BERM','African Methodist Episcopal'),('AUS','Anglican'),('BERM','Anglican'),('BS','Anglican'),('BS','Baptist'),('BS','Methodist');
|
||||
ANALYZE TABLE t1,t2 PERSISTENT FOR ALL;
|
||||
EXPLAIN SELECT t1.a
|
||||
FROM (SELECT a FROM t2 GROUP BY a ORDER BY COUNT(DISTINCT b) LIMIT 1) dt
|
||||
JOIN t1 ON dt.a=t1.b;
|
||||
|
|
|
@ -262,6 +262,9 @@ INSERT INTO t1 VALUES
|
|||
CREATE TABLE t2 (a varchar(4), b varchar(50), PRIMARY KEY (b,a), KEY (a)) ENGINE=InnoDB;
|
||||
INSERT INTO t2 VALUES
|
||||
('BERM','African Methodist Episcopal'),('AUS','Anglican'),('BERM','Anglican'),('BS','Anglican'),('BS','Baptist'),('BS','Methodist');
|
||||
-- disable_result_log
|
||||
ANALYZE TABLE t1,t2 PERSISTENT FOR ALL;
|
||||
-- enable_result_log
|
||||
|
||||
let query=
|
||||
SELECT t1.a
|
||||
|
|
Loading…
Reference in a new issue