Skip to content

Commit 0954bcb

Browse files
committed
Post fix after the patch for MDEV-20576.
Adjusted test results.
1 parent deb9121 commit 0954bcb

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

mysql-test/r/selectivity_innodb.result

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1726,7 +1726,7 @@ b INT NOT NULL,
17261726
c char(100),
17271727
KEY (b, c),
17281728
KEY (b, a, c)
1729-
)
1729+
) ENGINE=MyISAM
17301730
DEFAULT CHARSET = utf8;
17311731
INSERT INTO t1 VALUES
17321732
(1, 1, 1),
@@ -1749,18 +1749,18 @@ INSERT INTO t1 SELECT a + 1280, b, c FROM t1 LIMIT 80;
17491749
EXPLAIN
17501750
SELECT a FROM t1 WHERE b = 1 ORDER BY c DESC LIMIT 9;
17511751
id select_type table type possible_keys key key_len ref rows Extra
1752-
1 SIMPLE t1refb,b_2b_24const 207Using where; Using index; Using filesort
1752+
1 SIMPLE t1rangeb,b_2b4NULL 226Using where
17531753
SELECT a FROM t1 WHERE b = 1 ORDER BY c DESC LIMIT 9;
17541754
a
17551755
2071
1756-
81
1757-
71
1758-
61
1759-
51
1760-
41
1761-
31
1762-
21
1763-
11
1756+
2061
1757+
2051
1758+
2041
1759+
2031
1760+
2021
1761+
2011
1762+
2001
1763+
1991
17641764
set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
17651765
DROP TABLE t1;
17661766
# End of 10.1 tests

mysql-test/t/selectivity.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ CREATE TABLE t1 (
11741174
c char(100),
11751175
KEY (b, c),
11761176
KEY (b, a, c)
1177-
)
1177+
) ENGINE=MyISAM
11781178
DEFAULT CHARSET = utf8;
11791179

11801180
INSERT INTO t1 VALUES

storage/tokudb/mysql-test/tokudb/r/mvcc-29.result

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ delete from foo where a > 5;
2626
# number of rows should be 9
2727
explain select * from foo where a > 1;
2828
id select_type table type possible_keys key key_len ref rows Extra
29-
1 SIMPLE foo range PRIMARY PRIMARY 4 NULL9Using where
29+
1 SIMPLE foo range PRIMARY PRIMARY 4 NULL5Using where
3030
# should have just 4 values
3131
select * from foo where a > 1;
3232
a b
@@ -37,7 +37,7 @@ a b
3737
# number of rows should be 9
3838
explain select * from foo where a > 1;
3939
id select_type table type possible_keys key key_len ref rows Extra
40-
1 SIMPLE foo range PRIMARY PRIMARY 4 NULL9Using where
40+
1 SIMPLE foo range PRIMARY PRIMARY 4 NULL5Using where
4141
# 9 values
4242
select * From foo where a > 1;
4343
a b

storage/tokudb/mysql-test/tokudb/r/mvcc-30.result

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ delete from foo where a < 10;
2626
# number of rows should be 9
2727
explain select * from foo where a < 50;
2828
id select_type table type possible_keys key key_len ref rows Extra
29-
1 SIMPLE foo range PRIMARY PRIMARY 4 NULL9Using where
29+
1 SIMPLE foo range PRIMARY PRIMARY 4 NULL5Using where
3030
# should have just 4 values
3131
select * from foo where a < 50;
3232
a b
@@ -37,7 +37,7 @@ a b
3737
# number of rows should be 9
3838
explain select * from foo where a < 50;
3939
id select_type table type possible_keys key key_len ref rows Extra
40-
1 SIMPLE foo range PRIMARY PRIMARY 4 NULL9Using where
40+
1 SIMPLE foo range PRIMARY PRIMARY 4 NULL5Using where
4141
# 9 values
4242
select * From foo where a < 50;
4343
a b

storage/tokudb/mysql-test/tokudb/r/mvcc-31.result

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ delete from foo where a = 2 or a = 4 or a = 10 or a = 30 or a = 50;
2626
# number of rows should be 8
2727
explain select * from foo where a > 1 and a < 50;
2828
id select_type table type possible_keys key key_len ref rows Extra
29-
1 SIMPLE foo range PRIMARY PRIMARY 4 NULL8Using where
29+
1 SIMPLE foo range PRIMARY PRIMARY 4 NULL5Using where
3030
# should have just 4 values
3131
select * from foo where a > 1 and a < 50;
3232
a b
@@ -37,7 +37,7 @@ a b
3737
# number of rows should be 8
3838
explain select * from foo where a > 1 and a < 50;
3939
id select_type table type possible_keys key key_len ref rows Extra
40-
1 SIMPLE foo range PRIMARY PRIMARY 4 NULL8Using where
40+
1 SIMPLE foo range PRIMARY PRIMARY 4 NULL5Using where
4141
# 8 values
4242
select * from foo where a > 1 and a < 50;
4343
a b

0 commit comments

Comments
 (0)