merge
This commit is contained in:
commit
2ac69d648a
@ -1382,7 +1382,7 @@ NULL
|
|||||||
2
|
2
|
||||||
explain partitions select * from t1 where a is null or a < 0 or a > 1;
|
explain partitions select * from t1 where a is null or a < 0 or a > 1;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 pn,p2 ALL NULL NULL NULL NULL 4 Using where
|
1 SIMPLE t1 pn,p2 ALL NULL NULL NULL NULL 2 Using where
|
||||||
drop table t1;
|
drop table t1;
|
||||||
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY, name VARCHAR(20))
|
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY, name VARCHAR(20))
|
||||||
ENGINE=MyISAM DEFAULT CHARSET=latin1
|
ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||||
|
@ -69,25 +69,25 @@ id select_type table partitions type possible_keys key key_len ref rows Extra
|
|||||||
1 SIMPLE t1 p0,p1,p2,p3 ALL NULL NULL NULL NULL 9 Using where
|
1 SIMPLE t1 p0,p1,p2,p3 ALL NULL NULL NULL NULL 9 Using where
|
||||||
explain partitions select * from t1 where a is null or (a >= 5 and a <= 7);
|
explain partitions select * from t1 where a is null or (a >= 5 and a <= 7);
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p0,p2,p3 ALL NULL NULL NULL NULL 9 Using where
|
1 SIMPLE t1 p0,p2,p3 ALL NULL NULL NULL NULL 7 Using where
|
||||||
explain partitions select * from t1 where a is null;
|
explain partitions select * from t1 where a is null;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 9 Using where
|
1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 3 Using where
|
||||||
explain partitions select * from t1 where a is not null;
|
explain partitions select * from t1 where a is not null;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p0,p1,p2,p3 ALL NULL NULL NULL NULL 9 Using where
|
1 SIMPLE t1 p0,p1,p2,p3 ALL NULL NULL NULL NULL 9 Using where
|
||||||
explain partitions select * from t1 where a >= 1 and a < 3;
|
explain partitions select * from t1 where a >= 1 and a < 3;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p0,p1 ALL NULL NULL NULL NULL 9 Using where
|
1 SIMPLE t1 p0,p1 ALL NULL NULL NULL NULL 5 Using where
|
||||||
explain partitions select * from t1 where a >= 3 and a <= 5;
|
explain partitions select * from t1 where a >= 3 and a <= 5;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p1,p2 ALL NULL NULL NULL NULL 9 Using where
|
1 SIMPLE t1 p1,p2 ALL NULL NULL NULL NULL 4 Using where
|
||||||
explain partitions select * from t1 where a > 2 and a < 4;
|
explain partitions select * from t1 where a > 2 and a < 4;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p1 ALL NULL NULL NULL NULL 9 Using where
|
1 SIMPLE t1 p1 ALL NULL NULL NULL NULL 2 Using where
|
||||||
explain partitions select * from t1 where a > 3 and a <= 6;
|
explain partitions select * from t1 where a > 3 and a <= 6;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p2,p3 ALL NULL NULL NULL NULL 9 Using where
|
1 SIMPLE t1 p2,p3 ALL NULL NULL NULL NULL 4 Using where
|
||||||
explain partitions select * from t1 where a > 5;
|
explain partitions select * from t1 where a > 5;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p0,p1,p2,p3 ALL NULL NULL NULL NULL 9 Using where
|
1 SIMPLE t1 p0,p1,p2,p3 ALL NULL NULL NULL NULL 9 Using where
|
||||||
|
@ -22,31 +22,31 @@ insert INTO t1 VALUES (110);
|
|||||||
ERROR HY000: Table has no partition for value 110
|
ERROR HY000: Table has no partition for value 110
|
||||||
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > 90;
|
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > 90;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 ALL NULL NULL NULL NULL 5 Using where
|
1 SIMPLE t1 ALL NULL NULL NULL NULL 0 Using where
|
||||||
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= 90;
|
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= 90;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 ALL NULL NULL NULL NULL 5 Using where
|
1 SIMPLE t1 ALL NULL NULL NULL NULL 0 Using where
|
||||||
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = 90;
|
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = 90;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 ALL NULL NULL NULL NULL 5 Using where
|
1 SIMPLE t1 ALL NULL NULL NULL NULL 0 Using where
|
||||||
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = 89;
|
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = 89;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p90 ALL NULL NULL NULL NULL 7 Using where
|
1 SIMPLE t1 p90 ALL NULL NULL NULL NULL 3 Using where
|
||||||
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= 89;
|
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= 89;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p90 ALL NULL NULL NULL NULL 7 Using where
|
1 SIMPLE t1 p90 ALL NULL NULL NULL NULL 3 Using where
|
||||||
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > 89;
|
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > 89;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 ALL NULL NULL NULL NULL 7 Using where
|
1 SIMPLE t1 ALL NULL NULL NULL NULL 0 Using where
|
||||||
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = 100;
|
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = 100;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 ALL NULL NULL NULL NULL 7 Using where
|
1 SIMPLE t1 ALL NULL NULL NULL NULL 0 Using where
|
||||||
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= 100;
|
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= 100;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 ALL NULL NULL NULL NULL 7 Using where
|
1 SIMPLE t1 ALL NULL NULL NULL NULL 0 Using where
|
||||||
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > 100;
|
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > 100;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 ALL NULL NULL NULL NULL 7 Using where
|
1 SIMPLE t1 ALL NULL NULL NULL NULL 0 Using where
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
#
|
#
|
||||||
# Bug#50104: Partitioned table with just 1 partion works with fk
|
# Bug#50104: Partitioned table with just 1 partion works with fk
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -73,13 +73,13 @@ id select_type table partitions type possible_keys key key_len ref rows Extra
|
|||||||
1 SIMPLE t1 pnull system NULL NULL NULL NULL 1
|
1 SIMPLE t1 pnull system NULL NULL NULL NULL 1
|
||||||
explain partitions select * from t1 where a >= 0;
|
explain partitions select * from t1 where a >= 0;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p0,p1 ALL NULL NULL NULL NULL 3 Using where
|
1 SIMPLE t1 p0,p1 ALL NULL NULL NULL NULL 2 Using where
|
||||||
explain partitions select * from t1 where a < 0;
|
explain partitions select * from t1 where a < 0;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
|
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
|
||||||
explain partitions select * from t1 where a <= 0;
|
explain partitions select * from t1 where a <= 0;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 pnull,p0 ALL NULL NULL NULL NULL 3 Using where
|
1 SIMPLE t1 pnull,p0 ALL NULL NULL NULL NULL 2 Using where
|
||||||
explain partitions select * from t1 where a > 1;
|
explain partitions select * from t1 where a > 1;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
|
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
|
||||||
@ -112,16 +112,16 @@ select * from t1 where a > 1;
|
|||||||
a b
|
a b
|
||||||
explain partitions select * from t1 where a is null;
|
explain partitions select * from t1 where a is null;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 pnull_pnullsp0,pnull_pnullsp1 ALL NULL NULL NULL NULL 6 Using where
|
1 SIMPLE t1 pnull_pnullsp0,pnull_pnullsp1 ALL NULL NULL NULL NULL 2 Using where
|
||||||
explain partitions select * from t1 where a >= 0;
|
explain partitions select * from t1 where a >= 0;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p0_p0sp0,p0_p0sp1,p1_p1sp0,p1_p1sp1 ALL NULL NULL NULL NULL 6 Using where
|
1 SIMPLE t1 p0_p0sp0,p0_p0sp1,p1_p1sp0,p1_p1sp1 ALL NULL NULL NULL NULL 4 Using where
|
||||||
explain partitions select * from t1 where a < 0;
|
explain partitions select * from t1 where a < 0;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 pnull_pnullsp0,pnull_pnullsp1 ALL NULL NULL NULL NULL 6 Using where
|
1 SIMPLE t1 pnull_pnullsp0,pnull_pnullsp1 ALL NULL NULL NULL NULL 2 Using where
|
||||||
explain partitions select * from t1 where a <= 0;
|
explain partitions select * from t1 where a <= 0;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 pnull_pnullsp0,pnull_pnullsp1,p0_p0sp0,p0_p0sp1 ALL NULL NULL NULL NULL 6 Using where
|
1 SIMPLE t1 pnull_pnullsp0,pnull_pnullsp1,p0_p0sp0,p0_p0sp1 ALL NULL NULL NULL NULL 4 Using where
|
||||||
explain partitions select * from t1 where a > 1;
|
explain partitions select * from t1 where a > 1;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
|
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
|
||||||
|
@ -141,7 +141,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 part1 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 part1 ALL NULL NULL NULL NULL 7 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -165,7 +165,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 5 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -190,7 +190,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 3 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -226,7 +226,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p6 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 p6 ALL NULL NULL NULL NULL 3 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -248,7 +248,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p4 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 p4 ALL NULL NULL NULL NULL 4 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -269,7 +269,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 4 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -289,7 +289,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 5 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -308,7 +308,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 part1 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 part1 ALL NULL NULL NULL NULL 7 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -326,7 +326,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 10 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -452,7 +452,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 part7 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 part7 ALL NULL NULL NULL NULL 7 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -476,7 +476,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 part7 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 part7 ALL NULL NULL NULL NULL 5 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -504,7 +504,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p6 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 p6 ALL NULL NULL NULL NULL 3 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -538,7 +538,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 4 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -563,7 +563,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 part7 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 part7 ALL NULL NULL NULL NULL 3 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -587,7 +587,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p4 ALL NULL NULL NULL NULL 23 Using where
|
1 SIMPLE t1 p4 ALL NULL NULL NULL NULL 10 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -610,7 +610,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 part7 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 part7 ALL NULL NULL NULL NULL 5 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -632,7 +632,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 part7 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 part7 ALL NULL NULL NULL NULL 7 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -653,7 +653,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 10 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
|
@ -155,7 +155,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 part1 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 part1 ALL NULL NULL NULL NULL 7 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -187,7 +187,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 5 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -228,7 +228,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 3 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -278,7 +278,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p6 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 p6 ALL NULL NULL NULL NULL 3 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -312,7 +312,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p4 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 p4 ALL NULL NULL NULL NULL 4 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -343,7 +343,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 4 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -371,7 +371,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 5 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -396,7 +396,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 part1 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 part1 ALL NULL NULL NULL NULL 7 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -418,7 +418,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
EXPLAIN PARTITIONS SELECT COUNT(*) FROM t1 WHERE f_date = '1000-02-10';
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 10 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -552,7 +552,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 part7 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 part7 ALL NULL NULL NULL NULL 7 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -584,7 +584,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 part7 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 part7 ALL NULL NULL NULL NULL 5 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -628,7 +628,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p6 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 p6 ALL NULL NULL NULL NULL 3 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -676,7 +676,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 4 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -713,7 +713,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 part7 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 part7 ALL NULL NULL NULL NULL 3 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -747,7 +747,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p4 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 p4 ALL NULL NULL NULL NULL 10 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -778,7 +778,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 part7 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 part7 ALL NULL NULL NULL NULL 5 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -806,7 +806,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 part7 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 part7 ALL NULL NULL NULL NULL 7 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
@ -831,7 +831,7 @@ t1.frm
|
|||||||
t1.par
|
t1.par
|
||||||
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 20 Using where
|
1 SIMPLE t1 p0 ALL NULL NULL NULL NULL 10 Using where
|
||||||
# check read single success: 1
|
# check read single success: 1
|
||||||
# check read all success: 1
|
# check read all success: 1
|
||||||
# check read row by row success: 1
|
# check read row by row success: 1
|
||||||
|
@ -8,6 +8,30 @@
|
|||||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||||
--enable_warnings
|
--enable_warnings
|
||||||
|
|
||||||
|
--echo #
|
||||||
|
--echo # Bug#53806: Wrong estimates for range query in partitioned MyISAM table
|
||||||
|
--echo # Bug#46754: 'rows' field doesn't reflect partition pruning
|
||||||
|
--echo #
|
||||||
|
CREATE TABLE t1 (a INT PRIMARY KEY)
|
||||||
|
PARTITION BY RANGE (a) (
|
||||||
|
PARTITION p0 VALUES LESS THAN (1),
|
||||||
|
PARTITION p1 VALUES LESS THAN (2),
|
||||||
|
PARTITION p2 VALUES LESS THAN (3),
|
||||||
|
PARTITION p3 VALUES LESS THAN (4),
|
||||||
|
PARTITION p4 VALUES LESS THAN (5),
|
||||||
|
PARTITION p5 VALUES LESS THAN (6),
|
||||||
|
PARTITION max VALUES LESS THAN MAXVALUE);
|
||||||
|
|
||||||
|
INSERT INTO t1 VALUES (-1),(0),(1),(2),(3),(4),(5),(6),(7),(8);
|
||||||
|
|
||||||
|
--replace_column 1 # 2 # 3 # 4 # 5 # 6 # 7 # 8 # 9 # 11 #
|
||||||
|
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= 1;
|
||||||
|
--replace_column 1 # 2 # 3 # 4 # 5 # 6 # 7 # 8 # 9 # 11 #
|
||||||
|
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < 7;
|
||||||
|
--replace_column 1 # 2 # 3 # 4 # 5 # 6 # 7 # 8 # 9 # 11 #
|
||||||
|
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= 1;
|
||||||
|
DROP TABLE t1;
|
||||||
|
|
||||||
--echo #
|
--echo #
|
||||||
--echo # Bug#49742: Partition Pruning not working correctly for RANGE
|
--echo # Bug#49742: Partition Pruning not working correctly for RANGE
|
||||||
--echo #
|
--echo #
|
||||||
|
@ -16662,7 +16662,15 @@ static void select_describe(JOIN *join, bool need_tmp_table, bool need_order,
|
|||||||
if (tab->select && tab->select->quick)
|
if (tab->select && tab->select->quick)
|
||||||
examined_rows= tab->select->quick->records;
|
examined_rows= tab->select->quick->records;
|
||||||
else if (tab->type == JT_NEXT || tab->type == JT_ALL)
|
else if (tab->type == JT_NEXT || tab->type == JT_ALL)
|
||||||
examined_rows= tab->limit ? tab->limit : tab->table->file->records();
|
{
|
||||||
|
if (tab->limit)
|
||||||
|
examined_rows= tab->limit;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
tab->table->file->info(HA_STATUS_VARIABLE);
|
||||||
|
examined_rows= tab->table->file->stats.records;
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
examined_rows=(ha_rows)join->best_positions[i].records_read;
|
examined_rows=(ha_rows)join->best_positions[i].records_read;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user