mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Post fix after the patch for MDEV-20576.
Adjusted test results.
This commit is contained in:
@ -1726,7 +1726,7 @@ b INT NOT NULL,
|
|||||||
c char(100),
|
c char(100),
|
||||||
KEY (b, c),
|
KEY (b, c),
|
||||||
KEY (b, a, c)
|
KEY (b, a, c)
|
||||||
)
|
) ENGINE=MyISAM
|
||||||
DEFAULT CHARSET = utf8;
|
DEFAULT CHARSET = utf8;
|
||||||
INSERT INTO t1 VALUES
|
INSERT INTO t1 VALUES
|
||||||
(1, 1, 1),
|
(1, 1, 1),
|
||||||
@ -1749,18 +1749,18 @@ INSERT INTO t1 SELECT a + 1280, b, c FROM t1 LIMIT 80;
|
|||||||
EXPLAIN
|
EXPLAIN
|
||||||
SELECT a FROM t1 WHERE b = 1 ORDER BY c DESC LIMIT 9;
|
SELECT a FROM t1 WHERE b = 1 ORDER BY c DESC LIMIT 9;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 ref b,b_2 b_2 4 const 207 Using where; Using index; Using filesort
|
1 SIMPLE t1 range b,b_2 b 4 NULL 226 Using where
|
||||||
SELECT a FROM t1 WHERE b = 1 ORDER BY c DESC LIMIT 9;
|
SELECT a FROM t1 WHERE b = 1 ORDER BY c DESC LIMIT 9;
|
||||||
a
|
a
|
||||||
2071
|
2071
|
||||||
81
|
2061
|
||||||
71
|
2051
|
||||||
61
|
2041
|
||||||
51
|
2031
|
||||||
41
|
2021
|
||||||
31
|
2011
|
||||||
21
|
2001
|
||||||
11
|
1991
|
||||||
set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
|
set optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
# End of 10.1 tests
|
# End of 10.1 tests
|
||||||
|
@ -1174,7 +1174,7 @@ CREATE TABLE t1 (
|
|||||||
c char(100),
|
c char(100),
|
||||||
KEY (b, c),
|
KEY (b, c),
|
||||||
KEY (b, a, c)
|
KEY (b, a, c)
|
||||||
)
|
) ENGINE=MyISAM
|
||||||
DEFAULT CHARSET = utf8;
|
DEFAULT CHARSET = utf8;
|
||||||
|
|
||||||
INSERT INTO t1 VALUES
|
INSERT INTO t1 VALUES
|
||||||
|
@ -26,7 +26,7 @@ delete from foo where a > 5;
|
|||||||
# number of rows should be 9
|
# number of rows should be 9
|
||||||
explain select * from foo where a > 1;
|
explain select * from foo where a > 1;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE foo range PRIMARY PRIMARY 4 NULL 9 Using where
|
1 SIMPLE foo range PRIMARY PRIMARY 4 NULL 5 Using where
|
||||||
# should have just 4 values
|
# should have just 4 values
|
||||||
select * from foo where a > 1;
|
select * from foo where a > 1;
|
||||||
a b
|
a b
|
||||||
@ -37,7 +37,7 @@ a b
|
|||||||
# number of rows should be 9
|
# number of rows should be 9
|
||||||
explain select * from foo where a > 1;
|
explain select * from foo where a > 1;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE foo range PRIMARY PRIMARY 4 NULL 9 Using where
|
1 SIMPLE foo range PRIMARY PRIMARY 4 NULL 5 Using where
|
||||||
# 9 values
|
# 9 values
|
||||||
select * From foo where a > 1;
|
select * From foo where a > 1;
|
||||||
a b
|
a b
|
||||||
|
@ -26,7 +26,7 @@ delete from foo where a < 10;
|
|||||||
# number of rows should be 9
|
# number of rows should be 9
|
||||||
explain select * from foo where a < 50;
|
explain select * from foo where a < 50;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE foo range PRIMARY PRIMARY 4 NULL 9 Using where
|
1 SIMPLE foo range PRIMARY PRIMARY 4 NULL 5 Using where
|
||||||
# should have just 4 values
|
# should have just 4 values
|
||||||
select * from foo where a < 50;
|
select * from foo where a < 50;
|
||||||
a b
|
a b
|
||||||
@ -37,7 +37,7 @@ a b
|
|||||||
# number of rows should be 9
|
# number of rows should be 9
|
||||||
explain select * from foo where a < 50;
|
explain select * from foo where a < 50;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE foo range PRIMARY PRIMARY 4 NULL 9 Using where
|
1 SIMPLE foo range PRIMARY PRIMARY 4 NULL 5 Using where
|
||||||
# 9 values
|
# 9 values
|
||||||
select * From foo where a < 50;
|
select * From foo where a < 50;
|
||||||
a b
|
a b
|
||||||
|
@ -26,7 +26,7 @@ delete from foo where a = 2 or a = 4 or a = 10 or a = 30 or a = 50;
|
|||||||
# number of rows should be 8
|
# number of rows should be 8
|
||||||
explain select * from foo where a > 1 and a < 50;
|
explain select * from foo where a > 1 and a < 50;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE foo range PRIMARY PRIMARY 4 NULL 8 Using where
|
1 SIMPLE foo range PRIMARY PRIMARY 4 NULL 5 Using where
|
||||||
# should have just 4 values
|
# should have just 4 values
|
||||||
select * from foo where a > 1 and a < 50;
|
select * from foo where a > 1 and a < 50;
|
||||||
a b
|
a b
|
||||||
@ -37,7 +37,7 @@ a b
|
|||||||
# number of rows should be 8
|
# number of rows should be 8
|
||||||
explain select * from foo where a > 1 and a < 50;
|
explain select * from foo where a > 1 and a < 50;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE foo range PRIMARY PRIMARY 4 NULL 8 Using where
|
1 SIMPLE foo range PRIMARY PRIMARY 4 NULL 5 Using where
|
||||||
# 8 values
|
# 8 values
|
||||||
select * from foo where a > 1 and a < 50;
|
select * from foo where a > 1 and a < 50;
|
||||||
a b
|
a b
|
||||||
|
Reference in New Issue
Block a user