Skip to content

Commit 6b8388e

Browse files
committed
Stabilize the test.
1 parent fb01193 commit 6b8388e

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

mysql-test/main/range_vs_index_merge.result

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1675,6 +1675,10 @@ f1 int, f2 int, f3 int, f4 int,
16751675
PRIMARY KEY (f1), KEY (f3), KEY (f4)
16761676
);
16771677
INSERT INTO t1 VALUES (9,0,2,6), (9930,0,0,NULL);
1678+
analyze table t1;
1679+
Table Op Msg_type Msg_text
1680+
test.t1 analyze status Engine-independent statistics collected
1681+
test.t1 analyze status OK
16781682
SET SESSION optimizer_switch='index_merge_intersection=off';
16791683
SET SESSION optimizer_switch='index_merge_sort_union=off';
16801684
SET SESSION optimizer_switch='index_merge_union=off';
@@ -1706,6 +1710,10 @@ INSERT INTO t1 VALUES
17061710
(95,0,5,6), (9935,0,5,5), (96,0,6,6), (9936,0,6,6),
17071711
(97,0,7,6), (9937,0,7,7), (98,0,8,6), (9938,0,8,8),
17081712
(99,0,9,6), (9939,0,9,9);
1713+
analyze table t1;
1714+
Table Op Msg_type Msg_text
1715+
test.t1 analyze status Engine-independent statistics collected
1716+
test.t1 analyze status OK
17091717
SET SESSION optimizer_switch='index_merge_union=off';
17101718
EXPLAIN
17111719
SELECT * FROM t1 FORCE KEY (PRIMARY,f3,f4)

mysql-test/main/range_vs_index_merge.test

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,6 +1086,8 @@ CREATE TABLE t1 (
10861086

10871087
INSERT INTO t1 VALUES (9,0,2,6), (9930,0,0,NULL);
10881088

1089+
analyze table t1;
1090+
10891091
SET SESSION optimizer_switch='index_merge_intersection=off';
10901092
SET SESSION optimizer_switch='index_merge_sort_union=off';
10911093

@@ -1118,6 +1120,8 @@ INSERT INTO t1 VALUES
11181120
(97,0,7,6), (9937,0,7,7), (98,0,8,6), (9938,0,8,8),
11191121
(99,0,9,6), (9939,0,9,9);
11201122

1123+
analyze table t1;
1124+
11211125
SET SESSION optimizer_switch='index_merge_union=off';
11221126

11231127
EXPLAIN

mysql-test/main/range_vs_index_merge_innodb.result

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1681,6 +1681,10 @@ f1 int, f2 int, f3 int, f4 int,
16811681
PRIMARY KEY (f1), KEY (f3), KEY (f4)
16821682
);
16831683
INSERT INTO t1 VALUES (9,0,2,6), (9930,0,0,NULL);
1684+
analyze table t1;
1685+
Table Op Msg_type Msg_text
1686+
test.t1 analyze status Engine-independent statistics collected
1687+
test.t1 analyze status OK
16841688
SET SESSION optimizer_switch='index_merge_intersection=off';
16851689
SET SESSION optimizer_switch='index_merge_sort_union=off';
16861690
SET SESSION optimizer_switch='index_merge_union=off';
@@ -1712,6 +1716,10 @@ INSERT INTO t1 VALUES
17121716
(95,0,5,6), (9935,0,5,5), (96,0,6,6), (9936,0,6,6),
17131717
(97,0,7,6), (9937,0,7,7), (98,0,8,6), (9938,0,8,8),
17141718
(99,0,9,6), (9939,0,9,9);
1719+
analyze table t1;
1720+
Table Op Msg_type Msg_text
1721+
test.t1 analyze status Engine-independent statistics collected
1722+
test.t1 analyze status OK
17151723
SET SESSION optimizer_switch='index_merge_union=off';
17161724
EXPLAIN
17171725
SELECT * FROM t1 FORCE KEY (PRIMARY,f3,f4)

0 commit comments

Comments
 (0)