Commit 0bef3bb8 authored by Sergei Golubchik's avatar Sergei Golubchik

cleanup: remove Item::intro_version

and partition_info::set_show_version_string - they were
already broken and impossible to maintain
parent d4403198
...@@ -6,8 +6,8 @@ Table Create Table ...@@ -6,8 +6,8 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`c1` varchar(10) CHARACTER SET utf8 COLLATE utf8_thai_520_w2 DEFAULT NULL `c1` varchar(10) CHARACTER SET utf8 COLLATE utf8_thai_520_w2 DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (c1) PARTITION BY KEY (c1)
PARTITIONS 3 */ PARTITIONS 3
INSERT INTO t1 VALUES ('A'),('À'),('Á'),('Â'),('Ã'),('Ä'),('Å'); INSERT INTO t1 VALUES ('A'),('À'),('Á'),('Â'),('Ã'),('Ä'),('Å');
INSERT INTO t1 VALUES ('B'); INSERT INTO t1 VALUES ('B');
INSERT INTO t1 VALUES ('C'); INSERT INTO t1 VALUES ('C');
......
...@@ -120,9 +120,9 @@ Table Create Table ...@@ -120,9 +120,9 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL `a` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (a) PARTITION BY RANGE (a)
SUBPARTITION BY LINEAR HASH (a) SUBPARTITION BY LINEAR HASH (a)
(PARTITION p0 VALUES LESS THAN (10) ENGINE = MyISAM) */ (PARTITION p0 VALUES LESS THAN (10) ENGINE = MyISAM)
select SUBPARTITION_METHOD FROM information_schema.partitions WHERE select SUBPARTITION_METHOD FROM information_schema.partitions WHERE
table_schema="test" AND table_name="t1"; table_schema="test" AND table_name="t1";
SUBPARTITION_METHOD SUBPARTITION_METHOD
...@@ -138,8 +138,8 @@ Table Create Table ...@@ -138,8 +138,8 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL `a` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (a) PARTITION BY LIST (a)
(PARTITION p0 VALUES IN (10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53) ENGINE = MyISAM) */ (PARTITION p0 VALUES IN (10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53) ENGINE = MyISAM)
SELECT PARTITION_DESCRIPTION FROM information_schema.partitions WHERE SELECT PARTITION_DESCRIPTION FROM information_schema.partitions WHERE
table_schema = "test" AND table_name = "t1"; table_schema = "test" AND table_name = "t1";
PARTITION_DESCRIPTION PARTITION_DESCRIPTION
......
This diff is collapsed.
...@@ -23,10 +23,10 @@ t1 CREATE TABLE `t1` ( ...@@ -23,10 +23,10 @@ t1 CREATE TABLE `t1` (
`created_at` datetime NOT NULL, `created_at` datetime NOT NULL,
`cool` tinyint(4) DEFAULT 0 `cool` tinyint(4) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (TO_DAYS(created_at)) PARTITION BY RANGE (TO_DAYS(created_at))
(PARTITION month_2010_4 VALUES LESS THAN (734258) ENGINE = InnoDB, (PARTITION month_2010_4 VALUES LESS THAN (734258) ENGINE = InnoDB,
PARTITION month_2010_5 VALUES LESS THAN (734289) ENGINE = InnoDB, PARTITION month_2010_5 VALUES LESS THAN (734289) ENGINE = InnoDB,
PARTITION month_max VALUES LESS THAN MAXVALUE ENGINE = InnoDB) */ PARTITION month_max VALUES LESS THAN MAXVALUE ENGINE = InnoDB)
INSERT INTO t1 VALUES (1, now(), 0); INSERT INTO t1 VALUES (1, now(), 0);
flush status; flush status;
show status like "Qcache_queries_in_cache"; show status like "Qcache_queries_in_cache";
...@@ -72,12 +72,12 @@ t1 CREATE TABLE `t1` ( ...@@ -72,12 +72,12 @@ t1 CREATE TABLE `t1` (
`created_at` datetime NOT NULL, `created_at` datetime NOT NULL,
`cool` tinyint(4) DEFAULT 0 `cool` tinyint(4) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (TO_DAYS(created_at)) PARTITION BY RANGE (TO_DAYS(created_at))
SUBPARTITION BY HASH (cool) SUBPARTITION BY HASH (cool)
SUBPARTITIONS 3 SUBPARTITIONS 3
(PARTITION month_2010_4 VALUES LESS THAN (734258) ENGINE = InnoDB, (PARTITION month_2010_4 VALUES LESS THAN (734258) ENGINE = InnoDB,
PARTITION month_2010_5 VALUES LESS THAN (734289) ENGINE = InnoDB, PARTITION month_2010_5 VALUES LESS THAN (734289) ENGINE = InnoDB,
PARTITION month_max VALUES LESS THAN MAXVALUE ENGINE = InnoDB) */ PARTITION month_max VALUES LESS THAN MAXVALUE ENGINE = InnoDB)
INSERT INTO t1 VALUES (1, now(), 0); INSERT INTO t1 VALUES (1, now(), 0);
flush status; flush status;
show status like "Qcache_queries_in_cache"; show status like "Qcache_queries_in_cache";
......
...@@ -23,10 +23,10 @@ t1 CREATE TABLE `t1` ( ...@@ -23,10 +23,10 @@ t1 CREATE TABLE `t1` (
`created_at` datetime NOT NULL, `created_at` datetime NOT NULL,
`cool` tinyint(4) DEFAULT 0 `cool` tinyint(4) DEFAULT 0
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (TO_DAYS(created_at)) PARTITION BY RANGE (TO_DAYS(created_at))
(PARTITION month_2010_4 VALUES LESS THAN (734258) ENGINE = MyISAM, (PARTITION month_2010_4 VALUES LESS THAN (734258) ENGINE = MyISAM,
PARTITION month_2010_5 VALUES LESS THAN (734289) ENGINE = MyISAM, PARTITION month_2010_5 VALUES LESS THAN (734289) ENGINE = MyISAM,
PARTITION month_max VALUES LESS THAN MAXVALUE ENGINE = MyISAM) */ PARTITION month_max VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
INSERT INTO t1 VALUES (1, now(), 0); INSERT INTO t1 VALUES (1, now(), 0);
flush status; flush status;
show status like "Qcache_queries_in_cache"; show status like "Qcache_queries_in_cache";
...@@ -72,12 +72,12 @@ t1 CREATE TABLE `t1` ( ...@@ -72,12 +72,12 @@ t1 CREATE TABLE `t1` (
`created_at` datetime NOT NULL, `created_at` datetime NOT NULL,
`cool` tinyint(4) DEFAULT 0 `cool` tinyint(4) DEFAULT 0
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (TO_DAYS(created_at)) PARTITION BY RANGE (TO_DAYS(created_at))
SUBPARTITION BY HASH (cool) SUBPARTITION BY HASH (cool)
SUBPARTITIONS 3 SUBPARTITIONS 3
(PARTITION month_2010_4 VALUES LESS THAN (734258) ENGINE = MyISAM, (PARTITION month_2010_4 VALUES LESS THAN (734258) ENGINE = MyISAM,
PARTITION month_2010_5 VALUES LESS THAN (734289) ENGINE = MyISAM, PARTITION month_2010_5 VALUES LESS THAN (734289) ENGINE = MyISAM,
PARTITION month_max VALUES LESS THAN MAXVALUE ENGINE = MyISAM) */ PARTITION month_max VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
INSERT INTO t1 VALUES (1, now(), 0); INSERT INTO t1 VALUES (1, now(), 0);
flush status; flush status;
show status like "Qcache_queries_in_cache"; show status like "Qcache_queries_in_cache";
......
...@@ -30,9 +30,9 @@ t1 CREATE TABLE `t1` ( ...@@ -30,9 +30,9 @@ t1 CREATE TABLE `t1` (
`department` varchar(10) DEFAULT NULL, `department` varchar(10) DEFAULT NULL,
`country` varchar(255) DEFAULT NULL `country` varchar(255) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50500 PARTITION BY LIST COLUMNS(department,country) PARTITION BY LIST COLUMNS(department,country)
(PARTITION first_office VALUES IN (('dep1','Russia'),('dep1','Croatia')) ENGINE = MyISAM, (PARTITION first_office VALUES IN (('dep1','Russia'),('dep1','Croatia')) ENGINE = MyISAM,
PARTITION second_office VALUES IN (('dep2','Russia')) ENGINE = MyISAM) */ PARTITION second_office VALUES IN (('dep2','Russia')) ENGINE = MyISAM)
SELECT * FROM t1 WHERE department = 'dep2' and country = 'Croatia'; SELECT * FROM t1 WHERE department = 'dep2' and country = 'Croatia';
id name department country id name department country
SELECT * FROM t1 WHERE department = 'dep1' and country = 'Croatia'; SELECT * FROM t1 WHERE department = 'dep1' and country = 'Croatia';
...@@ -173,10 +173,10 @@ Table Create Table ...@@ -173,10 +173,10 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` varchar(5) DEFAULT NULL `a` varchar(5) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50500 PARTITION BY LIST COLUMNS(a) PARTITION BY LIST COLUMNS(a)
(PARTITION p0 VALUES IN ('''') ENGINE = MyISAM, (PARTITION p0 VALUES IN ('''') ENGINE = MyISAM,
PARTITION p1 VALUES IN ('\\') ENGINE = MyISAM, PARTITION p1 VALUES IN ('\\') ENGINE = MyISAM,
PARTITION p2 VALUES IN ('\0') ENGINE = MyISAM) */ PARTITION p2 VALUES IN ('\0') ENGINE = MyISAM)
drop table t1; drop table t1;
set @@sql_mode=allow_invalid_dates; set @@sql_mode=allow_invalid_dates;
create table t1 (a char, b char, c date) create table t1 (a char, b char, c date)
...@@ -232,13 +232,13 @@ t1 CREATE TABLE `t1` ( ...@@ -232,13 +232,13 @@ t1 CREATE TABLE `t1` (
`c` varchar(25) DEFAULT NULL, `c` varchar(25) DEFAULT NULL,
`d` datetime DEFAULT NULL `d` datetime DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50500 PARTITION BY RANGE COLUMNS(a,b,c,d) PARTITION BY RANGE COLUMNS(a,b,c,d)
SUBPARTITION BY HASH (to_seconds(d)) SUBPARTITION BY HASH (to_seconds(d))
SUBPARTITIONS 4 SUBPARTITIONS 4
(PARTITION p0 VALUES LESS THAN (1,'0',MAXVALUE,'1900-01-01') ENGINE = MyISAM, (PARTITION p0 VALUES LESS THAN (1,'0',MAXVALUE,'1900-01-01') ENGINE = MyISAM,
PARTITION p1 VALUES LESS THAN (1,'a',MAXVALUE,'1999-01-01') ENGINE = MyISAM, PARTITION p1 VALUES LESS THAN (1,'a',MAXVALUE,'1999-01-01') ENGINE = MyISAM,
PARTITION p2 VALUES LESS THAN (1,'b',MAXVALUE,MAXVALUE) ENGINE = MyISAM, PARTITION p2 VALUES LESS THAN (1,'b',MAXVALUE,MAXVALUE) ENGINE = MyISAM,
PARTITION p3 VALUES LESS THAN (1,MAXVALUE,MAXVALUE,MAXVALUE) ENGINE = MyISAM) */ PARTITION p3 VALUES LESS THAN (1,MAXVALUE,MAXVALUE,MAXVALUE) ENGINE = MyISAM)
drop table t1; drop table t1;
create table t1 (a int, b int) create table t1 (a int, b int)
partition by range columns (a,b) partition by range columns (a,b)
...@@ -315,10 +315,10 @@ t1 CREATE TABLE `t1` ( ...@@ -315,10 +315,10 @@ t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL, `a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL `b` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50500 PARTITION BY LIST COLUMNS(a,b) PARTITION BY LIST COLUMNS(a,b)
(PARTITION p0 VALUES IN ((1,NULL),(2,NULL),(NULL,NULL)) ENGINE = MyISAM, (PARTITION p0 VALUES IN ((1,NULL),(2,NULL),(NULL,NULL)) ENGINE = MyISAM,
PARTITION p1 VALUES IN ((1,1),(2,2)) ENGINE = MyISAM, PARTITION p1 VALUES IN ((1,1),(2,2)) ENGINE = MyISAM,
PARTITION p2 VALUES IN ((3,NULL),(NULL,1)) ENGINE = MyISAM) */ PARTITION p2 VALUES IN ((3,NULL),(NULL,1)) ENGINE = MyISAM)
insert into t1 values (3, NULL); insert into t1 values (3, NULL);
insert into t1 values (NULL, 1); insert into t1 values (NULL, 1);
insert into t1 values (NULL, NULL); insert into t1 values (NULL, NULL);
...@@ -349,10 +349,10 @@ t1 CREATE TABLE `t1` ( ...@@ -349,10 +349,10 @@ t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL, `a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL `b` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50500 PARTITION BY LIST COLUMNS(a,b) PARTITION BY LIST COLUMNS(a,b)
(PARTITION p0 VALUES IN ((1,NULL),(2,NULL),(NULL,NULL)) ENGINE = MyISAM, (PARTITION p0 VALUES IN ((1,NULL),(2,NULL),(NULL,NULL)) ENGINE = MyISAM,
PARTITION p1 VALUES IN ((1,1),(2,2)) ENGINE = MyISAM, PARTITION p1 VALUES IN ((1,1),(2,2)) ENGINE = MyISAM,
PARTITION p2 VALUES IN ((3,NULL),(NULL,1)) ENGINE = MyISAM) */ PARTITION p2 VALUES IN ((3,NULL),(NULL,1)) ENGINE = MyISAM)
drop table t1; drop table t1;
create table t1 (a int) create table t1 (a int)
partition by list (a) partition by list (a)
...@@ -373,9 +373,9 @@ Table Create Table ...@@ -373,9 +373,9 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL `a` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (a) PARTITION BY LIST (a)
(PARTITION p0 VALUES IN (2,1) ENGINE = MyISAM, (PARTITION p0 VALUES IN (2,1) ENGINE = MyISAM,
PARTITION p1 VALUES IN (NULL,4,3) ENGINE = MyISAM) */ PARTITION p1 VALUES IN (NULL,4,3) ENGINE = MyISAM)
insert into t1 values (1); insert into t1 values (1);
insert into t1 values (2); insert into t1 values (2);
insert into t1 values (3); insert into t1 values (3);
...@@ -403,9 +403,9 @@ Table Create Table ...@@ -403,9 +403,9 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL `a` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50500 PARTITION BY LIST COLUMNS(a) PARTITION BY LIST COLUMNS(a)
(PARTITION p0 VALUES IN (2,1) ENGINE = MyISAM, (PARTITION p0 VALUES IN (2,1) ENGINE = MyISAM,
PARTITION p1 VALUES IN (4,NULL,3) ENGINE = MyISAM) */ PARTITION p1 VALUES IN (4,NULL,3) ENGINE = MyISAM)
insert into t1 values (1); insert into t1 values (1);
insert into t1 values (2); insert into t1 values (2);
insert into t1 values (3); insert into t1 values (3);
...@@ -418,9 +418,9 @@ Table Create Table ...@@ -418,9 +418,9 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL `a` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50500 PARTITION BY LIST COLUMNS(a) PARTITION BY LIST COLUMNS(a)
(PARTITION p0 VALUES IN (2,1) ENGINE = MyISAM, (PARTITION p0 VALUES IN (2,1) ENGINE = MyISAM,
PARTITION p1 VALUES IN (4,NULL,3) ENGINE = MyISAM) */ PARTITION p1 VALUES IN (4,NULL,3) ENGINE = MyISAM)
drop table t1; drop table t1;
create table t1 (a int, b char(10), c varchar(5), d int) create table t1 (a int, b char(10), c varchar(5), d int)
partition by range columns(a,b,c) partition by range columns(a,b,c)
...@@ -453,13 +453,13 @@ t1 CREATE TABLE `t1` ( ...@@ -453,13 +453,13 @@ t1 CREATE TABLE `t1` (
`c` varchar(5) DEFAULT NULL, `c` varchar(5) DEFAULT NULL,
`d` int(11) DEFAULT NULL `d` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50500 PARTITION BY RANGE COLUMNS(a,b,c) PARTITION BY RANGE COLUMNS(a,b,c)
SUBPARTITION BY KEY (c,d) SUBPARTITION BY KEY (c,d)
SUBPARTITIONS 3 SUBPARTITIONS 3
(PARTITION p0 VALUES LESS THAN (1,'abc','abc') ENGINE = MyISAM, (PARTITION p0 VALUES LESS THAN (1,'abc','abc') ENGINE = MyISAM,
PARTITION p1 VALUES LESS THAN (2,'abc','abc') ENGINE = MyISAM, PARTITION p1 VALUES LESS THAN (2,'abc','abc') ENGINE = MyISAM,
PARTITION p2 VALUES LESS THAN (3,'abc','abc') ENGINE = MyISAM, PARTITION p2 VALUES LESS THAN (3,'abc','abc') ENGINE = MyISAM,
PARTITION p3 VALUES LESS THAN (4,'abc','abc') ENGINE = MyISAM) */ PARTITION p3 VALUES LESS THAN (4,'abc','abc') ENGINE = MyISAM)
insert into t1 values (1,'a','b',1),(2,'a','b',2),(3,'a','b',3); insert into t1 values (1,'a','b',1),(2,'a','b',2),(3,'a','b',3);
insert into t1 values (1,'b','c',1),(2,'b','c',2),(3,'b','c',3); insert into t1 values (1,'b','c',1),(2,'b','c',2),(3,'b','c',3);
insert into t1 values (1,'c','d',1),(2,'c','d',2),(3,'c','d',3); insert into t1 values (1,'c','d',1),(2,'c','d',2),(3,'c','d',3);
...@@ -486,9 +486,9 @@ t1 CREATE TABLE `t1` ( ...@@ -486,9 +486,9 @@ t1 CREATE TABLE `t1` (
`b` varchar(2) DEFAULT NULL, `b` varchar(2) DEFAULT NULL,
`c` int(11) DEFAULT NULL `c` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50500 PARTITION BY RANGE COLUMNS(a,b,c) PARTITION BY RANGE COLUMNS(a,b,c)
(PARTITION p0 VALUES LESS THAN (1,'A',1) ENGINE = MyISAM, (PARTITION p0 VALUES LESS THAN (1,'A',1) ENGINE = MyISAM,
PARTITION p1 VALUES LESS THAN (1,'B',1) ENGINE = MyISAM) */ PARTITION p1 VALUES LESS THAN (1,'B',1) ENGINE = MyISAM)
insert into t1 values (1, 'A', 1); insert into t1 values (1, 'A', 1);
explain partitions select * from t1 where a = 1 AND b <= 'A' and c = 1; explain partitions select * from t1 where a = 1 AND b <= 'A' and c = 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
......
...@@ -329,10 +329,10 @@ t1 CREATE TABLE `t1` ( ...@@ -329,10 +329,10 @@ t1 CREATE TABLE `t1` (
`a` bit(27) NOT NULL, `a` bit(27) NOT NULL,
PRIMARY KEY (`a`) PRIMARY KEY (`a`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (a) PARTITION BY HASH (a)
(PARTITION p0 ENGINE = MyISAM, (PARTITION p0 ENGINE = MyISAM,
PARTITION p1 ENGINE = MyISAM, PARTITION p1 ENGINE = MyISAM,
PARTITION p2 ENGINE = MyISAM) */ PARTITION p2 ENGINE = MyISAM)
insert into t1 values (1),(4),(7),(10),(13),(16),(19),(22),(25),(28),(31),(34); insert into t1 values (1),(4),(7),(10),(13),(16),(19),(22),(25),(28),(31),(34);
select hex(a) from t1 where a = 7; select hex(a) from t1 where a = 7;
hex(a) hex(a)
...@@ -850,7 +850,7 @@ t2 CREATE TABLE `t2` ( ...@@ -850,7 +850,7 @@ t2 CREATE TABLE `t2` (
`a` timestamp NULL DEFAULT NULL, `a` timestamp NULL DEFAULT NULL,
`tz` varchar(16) DEFAULT NULL `tz` varchar(16) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (UNIX_TIMESTAMP(a)) PARTITION BY RANGE (UNIX_TIMESTAMP(a))
(PARTITION p0 VALUES LESS THAN (0) ENGINE = MyISAM, (PARTITION p0 VALUES LESS THAN (0) ENGINE = MyISAM,
PARTITION `p-2000` VALUES LESS THAN (946684800) ENGINE = MyISAM, PARTITION `p-2000` VALUES LESS THAN (946684800) ENGINE = MyISAM,
PARTITION `p-2011-MSK` VALUES LESS THAN (1301180400) ENGINE = MyISAM, PARTITION `p-2011-MSK` VALUES LESS THAN (1301180400) ENGINE = MyISAM,
...@@ -859,7 +859,7 @@ t2 CREATE TABLE `t2` ( ...@@ -859,7 +859,7 @@ t2 CREATE TABLE `t2` (
PARTITION `p-2012-MSK-1` VALUES LESS THAN (1319932800) ENGINE = MyISAM, PARTITION `p-2012-MSK-1` VALUES LESS THAN (1319932800) ENGINE = MyISAM,
PARTITION `p-2012-MSK-2` VALUES LESS THAN (1332630000) ENGINE = MyISAM, PARTITION `p-2012-MSK-2` VALUES LESS THAN (1332630000) ENGINE = MyISAM,
PARTITION pEnd VALUES LESS THAN (2147483647) ENGINE = MyISAM, PARTITION pEnd VALUES LESS THAN (2147483647) ENGINE = MyISAM,
PARTITION pMax VALUES LESS THAN MAXVALUE ENGINE = MyISAM) */ PARTITION pMax VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
TRUNCATE TABLE t2; TRUNCATE TABLE t2;
SET @@session.time_zone = 'Europe/Moscow'; SET @@session.time_zone = 'Europe/Moscow';
INSERT INTO t2 SELECT * FROM t1; INSERT INTO t2 SELECT * FROM t1;
...@@ -1334,7 +1334,7 @@ t2 CREATE TABLE `t2` ( ...@@ -1334,7 +1334,7 @@ t2 CREATE TABLE `t2` (
`a` timestamp NULL DEFAULT NULL, `a` timestamp NULL DEFAULT NULL,
`tz` varchar(16) DEFAULT NULL `tz` varchar(16) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (UNIX_TIMESTAMP(a)) PARTITION BY RANGE (UNIX_TIMESTAMP(a))
(PARTITION p0 VALUES LESS THAN (0) ENGINE = MyISAM, (PARTITION p0 VALUES LESS THAN (0) ENGINE = MyISAM,
PARTITION `p-2000` VALUES LESS THAN (946684800) ENGINE = MyISAM, PARTITION `p-2000` VALUES LESS THAN (946684800) ENGINE = MyISAM,
PARTITION `p-2011-MSK` VALUES LESS THAN (1301180400) ENGINE = MyISAM, PARTITION `p-2011-MSK` VALUES LESS THAN (1301180400) ENGINE = MyISAM,
...@@ -1343,7 +1343,7 @@ t2 CREATE TABLE `t2` ( ...@@ -1343,7 +1343,7 @@ t2 CREATE TABLE `t2` (
PARTITION `p-2012-MSK-1` VALUES LESS THAN (1319932800) ENGINE = MyISAM, PARTITION `p-2012-MSK-1` VALUES LESS THAN (1319932800) ENGINE = MyISAM,
PARTITION `p-2012-MSK-2` VALUES LESS THAN (1332630000) ENGINE = MyISAM, PARTITION `p-2012-MSK-2` VALUES LESS THAN (1332630000) ENGINE = MyISAM,
PARTITION pEnd VALUES LESS THAN (2147483647) ENGINE = MyISAM, PARTITION pEnd VALUES LESS THAN (2147483647) ENGINE = MyISAM,
PARTITION pMax VALUES LESS THAN MAXVALUE ENGINE = MyISAM) */ PARTITION pMax VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
TRUNCATE TABLE t2; TRUNCATE TABLE t2;
DROP TABLE t1, t2; DROP TABLE t1, t2;
SET @@session.time_zone= @old_time_zone; SET @@session.time_zone= @old_time_zone;
...@@ -22,10 +22,10 @@ t1 CREATE TABLE `t1` ( ...@@ -22,10 +22,10 @@ t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL, `a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL `b` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (a) PARTITION BY LIST (a)
(PARTITION p2 VALUES IN (4,5,6) ENGINE = MyISAM, (PARTITION p2 VALUES IN (4,5,6) ENGINE = MyISAM,
PARTITION p1 VALUES IN (1) ENGINE = MyISAM, PARTITION p1 VALUES IN (1) ENGINE = MyISAM,
PARTITION p0 DEFAULT ENGINE = MyISAM) */ PARTITION p0 DEFAULT ENGINE = MyISAM)
insert into t1 values (10,10); insert into t1 values (10,10);
insert into t1 values (4,4); insert into t1 values (4,4);
select * from t1; select * from t1;
...@@ -72,10 +72,10 @@ t1 CREATE TABLE `t1` ( ...@@ -72,10 +72,10 @@ t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL, `a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL `b` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (a) PARTITION BY LIST (a)
(PARTITION p0 DEFAULT ENGINE = MyISAM, (PARTITION p0 DEFAULT ENGINE = MyISAM,
PARTITION p2 VALUES IN (4,5,6) ENGINE = MyISAM, PARTITION p2 VALUES IN (4,5,6) ENGINE = MyISAM,
PARTITION p1 VALUES IN (1) ENGINE = MyISAM) */ PARTITION p1 VALUES IN (1) ENGINE = MyISAM)
insert into t1 values (10,10); insert into t1 values (10,10);
select * from t1; select * from t1;
a b a b
...@@ -100,10 +100,10 @@ t1 CREATE TABLE `t1` ( ...@@ -100,10 +100,10 @@ t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL, `a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL `b` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (a) PARTITION BY LIST (a)
(PARTITION p0 DEFAULT ENGINE = MyISAM, (PARTITION p0 DEFAULT ENGINE = MyISAM,
PARTITION p2 VALUES IN (4,5,6) ENGINE = MyISAM, PARTITION p2 VALUES IN (4,5,6) ENGINE = MyISAM,
PARTITION p1 VALUES IN (1,0) ENGINE = MyISAM) */ PARTITION p1 VALUES IN (1,0) ENGINE = MyISAM)
insert into t1 values (10,10); insert into t1 values (10,10);
select * from t1; select * from t1;
a b a b
...@@ -128,10 +128,10 @@ t1 CREATE TABLE `t1` ( ...@@ -128,10 +128,10 @@ t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL, `a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL `b` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50500 PARTITION BY LIST COLUMNS(a,b) PARTITION BY LIST COLUMNS(a,b)
(PARTITION p2 VALUES IN ((1,4),(2,5),(3,6)) ENGINE = MyISAM, (PARTITION p2 VALUES IN ((1,4),(2,5),(3,6)) ENGINE = MyISAM,
PARTITION p1 VALUES IN ((1,1),(0,0)) ENGINE = MyISAM, PARTITION p1 VALUES IN ((1,1),(0,0)) ENGINE = MyISAM,
PARTITION p0 DEFAULT ENGINE = MyISAM) */ PARTITION p0 DEFAULT ENGINE = MyISAM)
insert into t1 values (10,10); insert into t1 values (10,10);
select * from t1; select * from t1;
a b a b
...@@ -176,10 +176,10 @@ t1 CREATE TABLE `t1` ( ...@@ -176,10 +176,10 @@ t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL, `a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL `b` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (a) PARTITION BY LIST (a)
(PARTITION p2 VALUES IN (4,5,6) ENGINE = MyISAM, (PARTITION p2 VALUES IN (4,5,6) ENGINE = MyISAM,
PARTITION p1 VALUES IN (1,20) ENGINE = MyISAM, PARTITION p1 VALUES IN (1,20) ENGINE = MyISAM,
PARTITION p0 DEFAULT ENGINE = MyISAM) */ PARTITION p0 DEFAULT ENGINE = MyISAM)
insert into t1 values (10,10); insert into t1 values (10,10);
select partition_name, table_rows from INFORMATION_SCHEMA.PARTITIONS where table_name='t1'; select partition_name, table_rows from INFORMATION_SCHEMA.PARTITIONS where table_name='t1';
partition_name table_rows partition_name table_rows
...@@ -256,10 +256,10 @@ t1 CREATE TABLE `t1` ( ...@@ -256,10 +256,10 @@ t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL, `a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL `b` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50500 PARTITION BY LIST COLUMNS(a,b) PARTITION BY LIST COLUMNS(a,b)
(PARTITION p2 VALUES IN ((1,4),(2,5),(3,6),(5,5)) ENGINE = MyISAM, (PARTITION p2 VALUES IN ((1,4),(2,5),(3,6),(5,5)) ENGINE = MyISAM,
PARTITION p1 VALUES IN ((1,1),(20,20)) ENGINE = MyISAM, PARTITION p1 VALUES IN ((1,1),(20,20)) ENGINE = MyISAM,
PARTITION p0 DEFAULT ENGINE = MyISAM) */ PARTITION p0 DEFAULT ENGINE = MyISAM)
insert into t1 values (10,10); insert into t1 values (10,10);
select partition_name, table_rows from INFORMATION_SCHEMA.PARTITIONS where table_name='t1'; select partition_name, table_rows from INFORMATION_SCHEMA.PARTITIONS where table_name='t1';
partition_name table_rows partition_name table_rows
...@@ -325,10 +325,10 @@ t1 CREATE TABLE `t1` ( ...@@ -325,10 +325,10 @@ t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL, `a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL `b` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (a+b) PARTITION BY LIST (a+b)
(PARTITION p2 VALUES IN (1,2,3,7) ENGINE = MyISAM, (PARTITION p2 VALUES IN (1,2,3,7) ENGINE = MyISAM,
PARTITION p1 VALUES IN (21,0) ENGINE = MyISAM, PARTITION p1 VALUES IN (21,0) ENGINE = MyISAM,
PARTITION p0 DEFAULT ENGINE = MyISAM) */ PARTITION p0 DEFAULT ENGINE = MyISAM)
select * from t1; select * from t1;
a b a b
2 5 2 5
...@@ -362,10 +362,10 @@ t1 CREATE TABLE `t1` ( ...@@ -362,10 +362,10 @@ t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL, `a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL `b` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (a+5) PARTITION BY LIST (a+5)
(PARTITION p2 VALUES IN (1,2,3,7) ENGINE = MyISAM, (PARTITION p2 VALUES IN (1,2,3,7) ENGINE = MyISAM,
PARTITION p1 VALUES IN (0) ENGINE = MyISAM, PARTITION p1 VALUES IN (0) ENGINE = MyISAM,
PARTITION p0 DEFAULT ENGINE = MyISAM) */ PARTITION p0 DEFAULT ENGINE = MyISAM)
select * from t1; select * from t1;
a b a b
2 5 2 5
...@@ -832,10 +832,10 @@ t1 CREATE TABLE `t1` ( ...@@ -832,10 +832,10 @@ t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL, `a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL `b` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (a) PARTITION BY LIST (a)
(PARTITION p2 VALUES IN (1,2,3) ENGINE = MyISAM, (PARTITION p2 VALUES IN (1,2,3) ENGINE = MyISAM,
PARTITION p1 VALUES IN (20,0) ENGINE = MyISAM, PARTITION p1 VALUES IN (20,0) ENGINE = MyISAM,
PARTITION p0 DEFAULT ENGINE = MyISAM) */ PARTITION p0 DEFAULT ENGINE = MyISAM)
select * from t1; select * from t1;
a b a b
2 5 2 5
...@@ -866,10 +866,10 @@ t1 CREATE TABLE `t1` ( ...@@ -866,10 +866,10 @@ t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL, `a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL `b` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (a) PARTITION BY LIST (a)
(PARTITION p2 VALUES IN (1,2,3) ENGINE = MyISAM, (PARTITION p2 VALUES IN (1,2,3) ENGINE = MyISAM,
PARTITION p1 VALUES IN (20,0) ENGINE = MyISAM, PARTITION p1 VALUES IN (20,0) ENGINE = MyISAM,
PARTITION p0 VALUES IN (10) ENGINE = MyISAM) */ PARTITION p0 VALUES IN (10) ENGINE = MyISAM)
select * from t1; select * from t1;
a b a b
2 5 2 5
...@@ -900,10 +900,10 @@ t1 CREATE TABLE `t1` ( ...@@ -900,10 +900,10 @@ t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL, `a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL `b` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (a) PARTITION BY LIST (a)
(PARTITION p2 DEFAULT ENGINE = MyISAM, (PARTITION p2 DEFAULT ENGINE = MyISAM,
PARTITION p1 VALUES IN (20,0) ENGINE = MyISAM, PARTITION p1 VALUES IN (20,0) ENGINE = MyISAM,
PARTITION p0 VALUES IN (10) ENGINE = MyISAM) */ PARTITION p0 VALUES IN (10) ENGINE = MyISAM)
select * from t1; select * from t1;
a b a b
2 5 2 5
...@@ -930,9 +930,9 @@ t1 CREATE TABLE `t1` ( ...@@ -930,9 +930,9 @@ t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL, `a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL `b` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (a) PARTITION BY LIST (a)
(PARTITION p1 VALUES IN (20,0) ENGINE = MyISAM, (PARTITION p1 VALUES IN (20,0) ENGINE = MyISAM,
PARTITION p0 VALUES IN (10) ENGINE = MyISAM) */ PARTITION p0 VALUES IN (10) ENGINE = MyISAM)
select * from t1; select * from t1;
a b a b
0 0 0 0
...@@ -948,10 +948,10 @@ t1 CREATE TABLE `t1` ( ...@@ -948,10 +948,10 @@ t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL, `a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL `b` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (a) PARTITION BY LIST (a)
(PARTITION p1 VALUES IN (20,0) ENGINE = MyISAM, (PARTITION p1 VALUES IN (20,0) ENGINE = MyISAM,
PARTITION p0 VALUES IN (10) ENGINE = MyISAM, PARTITION p0 VALUES IN (10) ENGINE = MyISAM,
PARTITION pd DEFAULT ENGINE = MyISAM) */ PARTITION pd DEFAULT ENGINE = MyISAM)
alter table t1 add partition (PARTITION pdd DEFAULT); alter table t1 add partition (PARTITION pdd DEFAULT);
ERROR HY000: Only one DEFAULT partition allowed ERROR HY000: Only one DEFAULT partition allowed
alter table t1 drop partition pd; alter table t1 drop partition pd;
...@@ -980,10 +980,10 @@ t1 CREATE TABLE `t1` ( ...@@ -980,10 +980,10 @@ t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL, `a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL `b` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50500 PARTITION BY LIST COLUMNS(a,b) PARTITION BY LIST COLUMNS(a,b)
(PARTITION p2 VALUES IN ((1,4),(2,5),(3,6)) ENGINE = MyISAM, (PARTITION p2 VALUES IN ((1,4),(2,5),(3,6)) ENGINE = MyISAM,
PARTITION p1 VALUES IN ((1,1),(0,0)) ENGINE = MyISAM, PARTITION p1 VALUES IN ((1,1),(0,0)) ENGINE = MyISAM,
PARTITION p0 DEFAULT ENGINE = MyISAM) */ PARTITION p0 DEFAULT ENGINE = MyISAM)
select * from t1; select * from t1;
a b a b
2 5 2 5
...@@ -1014,10 +1014,10 @@ t1 CREATE TABLE `t1` ( ...@@ -1014,10 +1014,10 @@ t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL, `a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL `b` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50500 PARTITION BY LIST COLUMNS(a,b) PARTITION BY LIST COLUMNS(a,b)
(PARTITION p2 VALUES IN ((1,4),(2,5),(3,6)) ENGINE = MyISAM, (PARTITION p2 VALUES IN ((1,4),(2,5),(3,6)) ENGINE = MyISAM,
PARTITION p1 VALUES IN ((1,1),(0,0)) ENGINE = MyISAM, PARTITION p1 VALUES IN ((1,1),(0,0)) ENGINE = MyISAM,
PARTITION p0 VALUES IN ((10,10)) ENGINE = MyISAM) */ PARTITION p0 VALUES IN ((10,10)) ENGINE = MyISAM)
select * from t1; select * from t1;
a b a b
2 5 2 5
...@@ -1048,10 +1048,10 @@ t1 CREATE TABLE `t1` ( ...@@ -1048,10 +1048,10 @@ t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL, `a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL `b` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50500 PARTITION BY LIST COLUMNS(a,b) PARTITION BY LIST COLUMNS(a,b)
(PARTITION p2 DEFAULT ENGINE = MyISAM, (PARTITION p2 DEFAULT ENGINE = MyISAM,
PARTITION p1 VALUES IN ((1,1),(0,0)) ENGINE = MyISAM, PARTITION p1 VALUES IN ((1,1),(0,0)) ENGINE = MyISAM,
PARTITION p0 VALUES IN ((10,10)) ENGINE = MyISAM) */ PARTITION p0 VALUES IN ((10,10)) ENGINE = MyISAM)
select * from t1; select * from t1;
a b a b
2 5 2 5
...@@ -1078,9 +1078,9 @@ t1 CREATE TABLE `t1` ( ...@@ -1078,9 +1078,9 @@ t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL, `a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL `b` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50500 PARTITION BY LIST COLUMNS(a,b) PARTITION BY LIST COLUMNS(a,b)
(PARTITION p1 VALUES IN ((1,1),(0,0)) ENGINE = MyISAM, (PARTITION p1 VALUES IN ((1,1),(0,0)) ENGINE = MyISAM,
PARTITION p0 VALUES IN ((10,10)) ENGINE = MyISAM) */ PARTITION p0 VALUES IN ((10,10)) ENGINE = MyISAM)
select * from t1; select * from t1;
a b a b
0 0 0 0
...@@ -1096,10 +1096,10 @@ t1 CREATE TABLE `t1` ( ...@@ -1096,10 +1096,10 @@ t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL, `a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL `b` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50500 PARTITION BY LIST COLUMNS(a,b) PARTITION BY LIST COLUMNS(a,b)
(PARTITION p1 VALUES IN ((1,1),(0,0)) ENGINE = MyISAM, (PARTITION p1 VALUES IN ((1,1),(0,0)) ENGINE = MyISAM,
PARTITION p0 VALUES IN ((10,10)) ENGINE = MyISAM, PARTITION p0 VALUES IN ((10,10)) ENGINE = MyISAM,
PARTITION pd DEFAULT ENGINE = MyISAM) */ PARTITION pd DEFAULT ENGINE = MyISAM)
alter table t1 add partition (PARTITION pdd DEFAULT); alter table t1 add partition (PARTITION pdd DEFAULT);
ERROR HY000: Only one DEFAULT partition allowed ERROR HY000: Only one DEFAULT partition allowed
alter table t1 drop partition pd; alter table t1 drop partition pd;
...@@ -1144,10 +1144,10 @@ t1 CREATE TABLE `t1` ( ...@@ -1144,10 +1144,10 @@ t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL, `a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL `b` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50500 PARTITION BY LIST COLUMNS(a,b) PARTITION BY LIST COLUMNS(a,b)
(PARTITION p0 DEFAULT ENGINE = MyISAM, (PARTITION p0 DEFAULT ENGINE = MyISAM,
PARTITION p2 VALUES IN ((1,4),(2,5),(3,6)) ENGINE = MyISAM, PARTITION p2 VALUES IN ((1,4),(2,5),(3,6)) ENGINE = MyISAM,
PARTITION p1 VALUES IN ((1,1),(0,0)) ENGINE = MyISAM) */ PARTITION p1 VALUES IN ((1,1),(0,0)) ENGINE = MyISAM)
drop table t1; drop table t1;
# #
# MDEV-10765: Wrong result - query does not retrieve values from # MDEV-10765: Wrong result - query does not retrieve values from
......
...@@ -781,9 +781,9 @@ t1 CREATE TABLE `t1` ( ...@@ -781,9 +781,9 @@ t1 CREATE TABLE `t1` (
`id` int(11) DEFAULT NULL, `id` int(11) DEFAULT NULL,
`purchased` date DEFAULT NULL `purchased` date DEFAULT NULL
) ENGINE=<curr_engine> DEFAULT CHARSET=latin1 ) ENGINE=<curr_engine> DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (YEAR(purchased)) PARTITION BY RANGE (YEAR(purchased))
SUBPARTITION BY HASH (TO_DAYS(purchased)) SUBPARTITION BY HASH (TO_DAYS(purchased))
(PARTITION p0 VALUES LESS THAN MAXVALUE ENGINE = <curr_engine>) */ (PARTITION p0 VALUES LESS THAN MAXVALUE ENGINE = <curr_engine>)
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (id INT, purchased DATE) CREATE TABLE t1 (id INT, purchased DATE)
PARTITION BY RANGE(YEAR(purchased)) PARTITION BY RANGE(YEAR(purchased))
...@@ -802,11 +802,11 @@ t1 CREATE TABLE `t1` ( ...@@ -802,11 +802,11 @@ t1 CREATE TABLE `t1` (
`id` int(11) DEFAULT NULL, `id` int(11) DEFAULT NULL,
`purchased` date DEFAULT NULL `purchased` date DEFAULT NULL
) ENGINE=<curr_engine> DEFAULT CHARSET=latin1 ) ENGINE=<curr_engine> DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (YEAR(purchased)) PARTITION BY RANGE (YEAR(purchased))
SUBPARTITION BY HASH (TO_DAYS(purchased)) SUBPARTITION BY HASH (TO_DAYS(purchased))
(PARTITION p0 VALUES LESS THAN MAXVALUE (PARTITION p0 VALUES LESS THAN MAXVALUE
(SUBPARTITION sp0 ENGINE = <curr_engine>, (SUBPARTITION sp0 ENGINE = <curr_engine>,
SUBPARTITION sp1 ENGINE = <curr_engine>)) */ SUBPARTITION sp1 ENGINE = <curr_engine>))
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (id INT, purchased DATE) CREATE TABLE t1 (id INT, purchased DATE)
PARTITION BY RANGE(YEAR(purchased)) PARTITION BY RANGE(YEAR(purchased))
...@@ -822,8 +822,8 @@ t1 CREATE TABLE `t1` ( ...@@ -822,8 +822,8 @@ t1 CREATE TABLE `t1` (
`id` int(11) DEFAULT NULL, `id` int(11) DEFAULT NULL,
`purchased` date DEFAULT NULL `purchased` date DEFAULT NULL
) ENGINE=<curr_engine> DEFAULT CHARSET=latin1 ) ENGINE=<curr_engine> DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (YEAR(purchased)) PARTITION BY RANGE (YEAR(purchased))
(PARTITION p0 VALUES LESS THAN MAXVALUE ENGINE = <curr_engine>) */ (PARTITION p0 VALUES LESS THAN MAXVALUE ENGINE = <curr_engine>)
DROP TABLE t1; DROP TABLE t1;
SET @@sql_mode= @org_mode; SET @@sql_mode= @org_mode;
CREATE TABLE t1 (a INTEGER NOT NULL, PRIMARY KEY (a)); CREATE TABLE t1 (a INTEGER NOT NULL, PRIMARY KEY (a));
...@@ -1783,14 +1783,14 @@ Table Create Table ...@@ -1783,14 +1783,14 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL `a` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (a) PARTITION BY LIST (a)
SUBPARTITION BY HASH (a) SUBPARTITION BY HASH (a)
(PARTITION p1 VALUES IN (1) (PARTITION p1 VALUES IN (1)
(SUBPARTITION p1spFirst COMMENT = 'SubPartition comment in p1spFirst' ENGINE = MyISAM, (SUBPARTITION p1spFirst COMMENT = 'SubPartition comment in p1spFirst' ENGINE = MyISAM,
SUBPARTITION p1spSecond COMMENT = 'SubPartition comment in p1spSecond' ENGINE = MyISAM), SUBPARTITION p1spSecond COMMENT = 'SubPartition comment in p1spSecond' ENGINE = MyISAM),
PARTITION p2 VALUES IN (2) PARTITION p2 VALUES IN (2)
(SUBPARTITION p2spFirst COMMENT = 'SubPartition comment in p2spFirst' ENGINE = MyISAM, (SUBPARTITION p2spFirst COMMENT = 'SubPartition comment in p2spFirst' ENGINE = MyISAM,
SUBPARTITION p2spSecond COMMENT = 'SubPartition comment in p2spSecond' ENGINE = MyISAM)) */ SUBPARTITION p2spSecond COMMENT = 'SubPartition comment in p2spSecond' ENGINE = MyISAM))
SELECT PARTITION_NAME, SUBPARTITION_NAME, PARTITION_COMMENT FROM INFORMATION_SCHEMA.PARTITIONS SELECT PARTITION_NAME, SUBPARTITION_NAME, PARTITION_COMMENT FROM INFORMATION_SCHEMA.PARTITIONS
WHERE TABLE_NAME = 't1' AND TABLE_SCHEMA = 'test'; WHERE TABLE_NAME = 't1' AND TABLE_SCHEMA = 'test';
PARTITION_NAME SUBPARTITION_NAME PARTITION_COMMENT PARTITION_NAME SUBPARTITION_NAME PARTITION_COMMENT
...@@ -1813,14 +1813,14 @@ Table Create Table ...@@ -1813,14 +1813,14 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL `a` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (a) PARTITION BY LIST (a)
SUBPARTITION BY HASH (a) SUBPARTITION BY HASH (a)
(PARTITION p1 VALUES IN (1) (PARTITION p1 VALUES IN (1)
(SUBPARTITION p1spFirst COMMENT = 'SubPartition comment in p1spFirst' ENGINE = MyISAM, (SUBPARTITION p1spFirst COMMENT = 'SubPartition comment in p1spFirst' ENGINE = MyISAM,
SUBPARTITION p1spSecond ENGINE = MyISAM), SUBPARTITION p1spSecond ENGINE = MyISAM),
PARTITION p2 VALUES IN (2) PARTITION p2 VALUES IN (2)
(SUBPARTITION p2spFirst COMMENT = 'Comment in p2' ENGINE = MyISAM, (SUBPARTITION p2spFirst COMMENT = 'Comment in p2' ENGINE = MyISAM,
SUBPARTITION p2spSecond COMMENT = 'SubPartition comment in p2spSecond' ENGINE = MyISAM)) */ SUBPARTITION p2spSecond COMMENT = 'SubPartition comment in p2spSecond' ENGINE = MyISAM))
SELECT PARTITION_NAME, SUBPARTITION_NAME, PARTITION_COMMENT FROM INFORMATION_SCHEMA.PARTITIONS SELECT PARTITION_NAME, SUBPARTITION_NAME, PARTITION_COMMENT FROM INFORMATION_SCHEMA.PARTITIONS
WHERE TABLE_NAME = 't1' AND TABLE_SCHEMA = 'test'; WHERE TABLE_NAME = 't1' AND TABLE_SCHEMA = 'test';
PARTITION_NAME SUBPARTITION_NAME PARTITION_COMMENT PARTITION_NAME SUBPARTITION_NAME PARTITION_COMMENT
...@@ -1849,14 +1849,14 @@ t1 CREATE TABLE `t1` ( ...@@ -1849,14 +1849,14 @@ t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL, `a` int(11) DEFAULT NULL,
KEY `inx_a` (`a`) KEY `inx_a` (`a`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (a) PARTITION BY RANGE (a)
SUBPARTITION BY HASH (a) SUBPARTITION BY HASH (a)
(PARTITION pUpTo10 VALUES LESS THAN (10) (PARTITION pUpTo10 VALUES LESS THAN (10)
(SUBPARTITION `p-10sp0` COMMENT = 'This is a long comment (2050 ascii characters) 50 pUpTo10 partition ......80-!.................. 100 ................................................................................................ 200....................................................................................................................................................................................................................................................................................................... 500 ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1000 ..............1024-|' ENGINE = MyISAM, (SUBPARTITION `p-10sp0` COMMENT = 'This is a long comment (2050 ascii characters) 50 pUpTo10 partition ......80-!.................. 100 ................................................................................................ 200....................................................................................................................................................................................................................................................................................................... 500 ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1000 ..............1024-|' ENGINE = MyISAM,
SUBPARTITION `p-10sp1` COMMENT = 'This is a long comment (2050 ascii characters) 50 pUpTo10 partition ......80-!.................. 100 ................................................................................................ 200....................................................................................................................................................................................................................................................................................................... 500 ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1000 ..............1024-|' ENGINE = MyISAM), SUBPARTITION `p-10sp1` COMMENT = 'This is a long comment (2050 ascii characters) 50 pUpTo10 partition ......80-!.................. 100 ................................................................................................ 200....................................................................................................................................................................................................................................................................................................... 500 ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1000 ..............1024-|' ENGINE = MyISAM),
PARTITION pMax VALUES LESS THAN MAXVALUE PARTITION pMax VALUES LESS THAN MAXVALUE
(SUBPARTITION pMaxsp0 COMMENT = 'This is a long comment (2050 ascii characters) 50 pMax partition comment .80-!.................. 100 ................................................................................................ 200....................................................................................................................................................................................................................................................................................................... 500 ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1000 ..............1024-|' ENGINE = MyISAM, (SUBPARTITION pMaxsp0 COMMENT = 'This is a long comment (2050 ascii characters) 50 pMax partition comment .80-!.................. 100 ................................................................................................ 200....................................................................................................................................................................................................................................................................................................... 500 ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1000 ..............1024-|' ENGINE = MyISAM,
SUBPARTITION pMaxsp1 COMMENT = 'This is a long comment (2050 ascii characters) 50 pMax partition comment .80-!.................. 100 ................................................................................................ 200....................................................................................................................................................................................................................................................................................................... 500 ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1000 ..............1024-|' ENGINE = MyISAM)) */ SUBPARTITION pMaxsp1 COMMENT = 'This is a long comment (2050 ascii characters) 50 pMax partition comment .80-!.................. 100 ................................................................................................ 200....................................................................................................................................................................................................................................................................................................... 500 ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1000 ..............1024-|' ENGINE = MyISAM))
SELECT PARTITION_NAME, SUBPARTITION_NAME, PARTITION_COMMENT FROM INFORMATION_SCHEMA.PARTITIONS SELECT PARTITION_NAME, SUBPARTITION_NAME, PARTITION_COMMENT FROM INFORMATION_SCHEMA.PARTITIONS
WHERE TABLE_NAME = 't1' AND TABLE_SCHEMA = 'test'; WHERE TABLE_NAME = 't1' AND TABLE_SCHEMA = 'test';
PARTITION_NAME SUBPARTITION_NAME PARTITION_COMMENT PARTITION_NAME SUBPARTITION_NAME PARTITION_COMMENT
......
...@@ -8,9 +8,9 @@ Table Create Table ...@@ -8,9 +8,9 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` int(11) NOT NULL `a` int(11) NOT NULL
) ENGINE=EXAMPLE DEFAULT CHARSET=latin1 ) ENGINE=EXAMPLE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (a) PARTITION BY LIST (a)
(PARTITION p0 VALUES IN (1) ENGINE = EXAMPLE, (PARTITION p0 VALUES IN (1) ENGINE = EXAMPLE,
PARTITION p1 VALUES IN (2) ENGINE = EXAMPLE) */ PARTITION p1 VALUES IN (2) ENGINE = EXAMPLE)
drop table t1; drop table t1;
create table t1 (a int not null) create table t1 (a int not null)
engine=example ull=12340 engine=example ull=12340
...@@ -21,9 +21,9 @@ Table Create Table ...@@ -21,9 +21,9 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` int(11) NOT NULL `a` int(11) NOT NULL
) ENGINE=EXAMPLE DEFAULT CHARSET=latin1 `ull`=12340 ) ENGINE=EXAMPLE DEFAULT CHARSET=latin1 `ull`=12340
/*!50100 PARTITION BY LIST (a) PARTITION BY LIST (a)
(PARTITION p0 VALUES IN (1) ENGINE = EXAMPLE, (PARTITION p0 VALUES IN (1) ENGINE = EXAMPLE,
PARTITION p1 VALUES IN (2) ENGINE = EXAMPLE) */ PARTITION p1 VALUES IN (2) ENGINE = EXAMPLE)
drop table t1; drop table t1;
select 1; select 1;
1 1
......
...@@ -28,8 +28,8 @@ Create Table CREATE TABLE `t1` ( ...@@ -28,8 +28,8 @@ Create Table CREATE TABLE `t1` (
`modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT
/*!50100 PARTITION BY HASH (id) PARTITION BY HASH (id)
PARTITIONS 2 */ PARTITIONS 2
SHOW CREATE TABLE t2; SHOW CREATE TABLE t2;
Table t2 Table t2
Create Table CREATE TABLE `t2` ( Create Table CREATE TABLE `t2` (
...@@ -64,8 +64,8 @@ Create Table CREATE TABLE `t1` ( ...@@ -64,8 +64,8 @@ Create Table CREATE TABLE `t1` (
`modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT
/*!50100 PARTITION BY HASH (id) PARTITION BY HASH (id)
PARTITIONS 2 */ PARTITIONS 2
SHOW CREATE TABLE t2; SHOW CREATE TABLE t2;
Table t2 Table t2
Create Table CREATE TABLE `t2` ( Create Table CREATE TABLE `t2` (
...@@ -112,8 +112,8 @@ Create Table CREATE TABLE `t1` ( ...@@ -112,8 +112,8 @@ Create Table CREATE TABLE `t1` (
`modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT
/*!50100 PARTITION BY HASH (id) PARTITION BY HASH (id)
PARTITIONS 2 */ PARTITIONS 2
SHOW CREATE TABLE t2; SHOW CREATE TABLE t2;
Table t2 Table t2
Create Table CREATE TABLE `t2` ( Create Table CREATE TABLE `t2` (
...@@ -172,8 +172,8 @@ Create Table CREATE TABLE `t1` ( ...@@ -172,8 +172,8 @@ Create Table CREATE TABLE `t1` (
`modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (id) PARTITION BY HASH (id)
PARTITIONS 2 */ PARTITIONS 2
SHOW CREATE TABLE t2; SHOW CREATE TABLE t2;
Table t2 Table t2
Create Table CREATE TABLE `t2` ( Create Table CREATE TABLE `t2` (
...@@ -232,8 +232,8 @@ Create Table CREATE TABLE `t1` ( ...@@ -232,8 +232,8 @@ Create Table CREATE TABLE `t1` (
`modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (id) PARTITION BY HASH (id)
PARTITIONS 2 */ PARTITIONS 2
SHOW CREATE TABLE t2; SHOW CREATE TABLE t2;
Table t2 Table t2
Create Table CREATE TABLE `t2` ( Create Table CREATE TABLE `t2` (
...@@ -292,8 +292,8 @@ Create Table CREATE TABLE `t1` ( ...@@ -292,8 +292,8 @@ Create Table CREATE TABLE `t1` (
`modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=REDUNDANT ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=REDUNDANT
/*!50100 PARTITION BY HASH (id) PARTITION BY HASH (id)
PARTITIONS 2 */ PARTITIONS 2
SHOW CREATE TABLE t2; SHOW CREATE TABLE t2;
Table t2 Table t2
Create Table CREATE TABLE `t2` ( Create Table CREATE TABLE `t2` (
...@@ -349,8 +349,8 @@ Create Table CREATE TABLE `t1` ( ...@@ -349,8 +349,8 @@ Create Table CREATE TABLE `t1` (
`modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (id) PARTITION BY HASH (id)
PARTITIONS 2 */ PARTITIONS 2
SHOW CREATE TABLE t2; SHOW CREATE TABLE t2;
Table t2 Table t2
Create Table CREATE TABLE `t2` ( Create Table CREATE TABLE `t2` (
...@@ -406,8 +406,8 @@ Create Table CREATE TABLE `t1` ( ...@@ -406,8 +406,8 @@ Create Table CREATE TABLE `t1` (
`modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT
/*!50100 PARTITION BY HASH (id) PARTITION BY HASH (id)
PARTITIONS 2 */ PARTITIONS 2
SHOW CREATE TABLE t2; SHOW CREATE TABLE t2;
Table t2 Table t2
Create Table CREATE TABLE `t2` ( Create Table CREATE TABLE `t2` (
...@@ -496,9 +496,9 @@ tp CREATE TABLE `tp` ( ...@@ -496,9 +496,9 @@ tp CREATE TABLE `tp` (
`b` varchar(55) DEFAULT NULL, `b` varchar(55) DEFAULT NULL,
PRIMARY KEY (`a`) PRIMARY KEY (`a`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (a) PARTITION BY RANGE (a)
(PARTITION p0 VALUES LESS THAN (100) ENGINE = MyISAM, (PARTITION p0 VALUES LESS THAN (100) ENGINE = MyISAM,
PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = MyISAM) */ PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
SELECT * FROM t; SELECT * FROM t;
a b a b
1 First value 1 First value
...@@ -534,9 +534,9 @@ tp CREATE TABLE `tp` ( ...@@ -534,9 +534,9 @@ tp CREATE TABLE `tp` (
`b` varchar(55) DEFAULT NULL, `b` varchar(55) DEFAULT NULL,
PRIMARY KEY (`a`) PRIMARY KEY (`a`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (a) PARTITION BY RANGE (a)
(PARTITION p0 VALUES LESS THAN (100) ENGINE = MyISAM, (PARTITION p0 VALUES LESS THAN (100) ENGINE = MyISAM,
PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = MyISAM) */ PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
SELECT * FROM t; SELECT * FROM t;
a b a b
10 Ten 10 Ten
...@@ -594,9 +594,9 @@ tp CREATE TABLE `tp` ( ...@@ -594,9 +594,9 @@ tp CREATE TABLE `tp` (
`b` varchar(55) DEFAULT NULL, `b` varchar(55) DEFAULT NULL,
PRIMARY KEY (`a`) PRIMARY KEY (`a`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (a) PARTITION BY RANGE (a)
(PARTITION p0 VALUES LESS THAN (100) ENGINE = MyISAM, (PARTITION p0 VALUES LESS THAN (100) ENGINE = MyISAM,
PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = MyISAM) */ PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
SELECT * FROM t; SELECT * FROM t;
a b a b
1 First value 1 First value
...@@ -650,9 +650,9 @@ tp CREATE TABLE `tp` ( ...@@ -650,9 +650,9 @@ tp CREATE TABLE `tp` (
`b` varchar(55) DEFAULT NULL, `b` varchar(55) DEFAULT NULL,
PRIMARY KEY (`a`) PRIMARY KEY (`a`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (a) PARTITION BY RANGE (a)
(PARTITION p0 VALUES LESS THAN (100) ENGINE = MyISAM, (PARTITION p0 VALUES LESS THAN (100) ENGINE = MyISAM,
PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = MyISAM) */ PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
SHOW CREATE TABLE tsp; SHOW CREATE TABLE tsp;
Table Create Table Table Create Table
tsp CREATE TABLE `tsp` ( tsp CREATE TABLE `tsp` (
...@@ -660,14 +660,14 @@ tsp CREATE TABLE `tsp` ( ...@@ -660,14 +660,14 @@ tsp CREATE TABLE `tsp` (
`b` varchar(55) DEFAULT NULL, `b` varchar(55) DEFAULT NULL,
PRIMARY KEY (`a`) PRIMARY KEY (`a`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (a) PARTITION BY RANGE (a)
SUBPARTITION BY HASH (a) SUBPARTITION BY HASH (a)
(PARTITION p0 VALUES LESS THAN (100) (PARTITION p0 VALUES LESS THAN (100)
(SUBPARTITION sp0 ENGINE = MyISAM, (SUBPARTITION sp0 ENGINE = MyISAM,
SUBPARTITION sp1 ENGINE = MyISAM), SUBPARTITION sp1 ENGINE = MyISAM),
PARTITION p1 VALUES LESS THAN MAXVALUE PARTITION p1 VALUES LESS THAN MAXVALUE
(SUBPARTITION sp2 ENGINE = MyISAM, (SUBPARTITION sp2 ENGINE = MyISAM,
SUBPARTITION sp3 ENGINE = MyISAM)) */ SUBPARTITION sp3 ENGINE = MyISAM))
SELECT * FROM t; SELECT * FROM t;
a b a b
1 First value 1 First value
...@@ -704,9 +704,9 @@ tp CREATE TABLE `tp` ( ...@@ -704,9 +704,9 @@ tp CREATE TABLE `tp` (
`b` varchar(55) DEFAULT NULL, `b` varchar(55) DEFAULT NULL,
PRIMARY KEY (`a`) PRIMARY KEY (`a`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (a) PARTITION BY RANGE (a)
(PARTITION p0 VALUES LESS THAN (100) ENGINE = MyISAM, (PARTITION p0 VALUES LESS THAN (100) ENGINE = MyISAM,
PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = MyISAM) */ PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
SELECT * FROM t; SELECT * FROM t;
a b a b
10 Ten 10 Ten
...@@ -742,9 +742,9 @@ tp CREATE TABLE `tp` ( ...@@ -742,9 +742,9 @@ tp CREATE TABLE `tp` (
`b` varchar(55) DEFAULT NULL, `b` varchar(55) DEFAULT NULL,
PRIMARY KEY (`a`) PRIMARY KEY (`a`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (a) PARTITION BY RANGE (a)
(PARTITION p0 VALUES LESS THAN (100) ENGINE = MyISAM, (PARTITION p0 VALUES LESS THAN (100) ENGINE = MyISAM,
PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = MyISAM) */ PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
SELECT * FROM t; SELECT * FROM t;
a b a b
1 First value 1 First value
...@@ -781,14 +781,14 @@ tsp CREATE TABLE `tsp` ( ...@@ -781,14 +781,14 @@ tsp CREATE TABLE `tsp` (
`b` varchar(55) DEFAULT NULL, `b` varchar(55) DEFAULT NULL,
PRIMARY KEY (`a`) PRIMARY KEY (`a`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (a) PARTITION BY RANGE (a)
SUBPARTITION BY HASH (a) SUBPARTITION BY HASH (a)
(PARTITION p0 VALUES LESS THAN (100) (PARTITION p0 VALUES LESS THAN (100)
(SUBPARTITION sp0 ENGINE = MyISAM, (SUBPARTITION sp0 ENGINE = MyISAM,
SUBPARTITION sp1 ENGINE = MyISAM), SUBPARTITION sp1 ENGINE = MyISAM),
PARTITION p1 VALUES LESS THAN MAXVALUE PARTITION p1 VALUES LESS THAN MAXVALUE
(SUBPARTITION sp2 ENGINE = MyISAM, (SUBPARTITION sp2 ENGINE = MyISAM,
SUBPARTITION sp3 ENGINE = MyISAM)) */ SUBPARTITION sp3 ENGINE = MyISAM))
SELECT * FROM t; SELECT * FROM t;
a b a b
61 Sixty one 61 Sixty one
...@@ -826,9 +826,9 @@ tp CREATE TABLE `tp` ( ...@@ -826,9 +826,9 @@ tp CREATE TABLE `tp` (
`b` varchar(55) DEFAULT NULL, `b` varchar(55) DEFAULT NULL,
PRIMARY KEY (`a`) PRIMARY KEY (`a`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (a) PARTITION BY RANGE (a)
(PARTITION p0 VALUES LESS THAN (100) ENGINE = InnoDB, (PARTITION p0 VALUES LESS THAN (100) ENGINE = InnoDB,
PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = InnoDB) */ PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = InnoDB)
SELECT * FROM t; SELECT * FROM t;
a b a b
1 First value 1 First value
...@@ -864,9 +864,9 @@ tp CREATE TABLE `tp` ( ...@@ -864,9 +864,9 @@ tp CREATE TABLE `tp` (
`b` varchar(55) DEFAULT NULL, `b` varchar(55) DEFAULT NULL,
PRIMARY KEY (`a`) PRIMARY KEY (`a`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (a) PARTITION BY RANGE (a)
(PARTITION p0 VALUES LESS THAN (100) ENGINE = InnoDB, (PARTITION p0 VALUES LESS THAN (100) ENGINE = InnoDB,
PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = InnoDB) */ PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = InnoDB)
SELECT * FROM t; SELECT * FROM t;
a b a b
10 Ten 10 Ten
...@@ -905,9 +905,9 @@ tp CREATE TABLE `tp` ( ...@@ -905,9 +905,9 @@ tp CREATE TABLE `tp` (
`b` varchar(55) DEFAULT NULL, `b` varchar(55) DEFAULT NULL,
PRIMARY KEY (`a`) PRIMARY KEY (`a`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (a) PARTITION BY RANGE (a)
(PARTITION p0 VALUES LESS THAN (100) ENGINE = InnoDB, (PARTITION p0 VALUES LESS THAN (100) ENGINE = InnoDB,
PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = InnoDB) */ PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = InnoDB)
ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t; ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
ERROR HY000: The mix of handlers in the partitions is not allowed in this version of MariaDB ERROR HY000: The mix of handlers in the partitions is not allowed in this version of MariaDB
SHOW CREATE TABLE t; SHOW CREATE TABLE t;
...@@ -924,9 +924,9 @@ tp CREATE TABLE `tp` ( ...@@ -924,9 +924,9 @@ tp CREATE TABLE `tp` (
`b` varchar(55) DEFAULT NULL, `b` varchar(55) DEFAULT NULL,
PRIMARY KEY (`a`) PRIMARY KEY (`a`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (a) PARTITION BY RANGE (a)
(PARTITION p0 VALUES LESS THAN (100) ENGINE = InnoDB, (PARTITION p0 VALUES LESS THAN (100) ENGINE = InnoDB,
PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = InnoDB) */ PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = InnoDB)
# Test different charsets # Test different charsets
ALTER TABLE t ENGINE = MyISAM; ALTER TABLE t ENGINE = MyISAM;
CREATE TABLE tmp LIKE t; CREATE TABLE tmp LIKE t;
...@@ -957,9 +957,9 @@ tp CREATE TABLE `tp` ( ...@@ -957,9 +957,9 @@ tp CREATE TABLE `tp` (
`b` varchar(55) DEFAULT NULL, `b` varchar(55) DEFAULT NULL,
PRIMARY KEY (`a`) PRIMARY KEY (`a`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (a) PARTITION BY RANGE (a)
(PARTITION p0 VALUES LESS THAN (100) ENGINE = MyISAM, (PARTITION p0 VALUES LESS THAN (100) ENGINE = MyISAM,
PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = MyISAM) */ PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t; ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
ERROR HY000: Non matching attribute 'MAX_ROWS' between partition and table ERROR HY000: Non matching attribute 'MAX_ROWS' between partition and table
SHOW WARNINGS; SHOW WARNINGS;
...@@ -988,9 +988,9 @@ tp CREATE TABLE `tp` ( ...@@ -988,9 +988,9 @@ tp CREATE TABLE `tp` (
PRIMARY KEY (`a`), PRIMARY KEY (`a`),
KEY `ba_key` (`b`,`a`) KEY `ba_key` (`b`,`a`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (a) PARTITION BY RANGE (a)
(PARTITION p0 VALUES LESS THAN (100) ENGINE = MyISAM, (PARTITION p0 VALUES LESS THAN (100) ENGINE = MyISAM,
PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = MyISAM) */ PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
SELECT * FROM t; SELECT * FROM t;
a b a b
10 Ten 10 Ten
...@@ -1047,9 +1047,9 @@ tp CREATE TABLE `tp` ( ...@@ -1047,9 +1047,9 @@ tp CREATE TABLE `tp` (
PRIMARY KEY (`a`), PRIMARY KEY (`a`),
KEY `ba_key` (`b`,`a`) KEY `ba_key` (`b`,`a`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (a) PARTITION BY RANGE (a)
(PARTITION p0 VALUES LESS THAN (100) ENGINE = MyISAM, (PARTITION p0 VALUES LESS THAN (100) ENGINE = MyISAM,
PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = MyISAM) */ PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t; ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t;
ERROR HY000: Table to exchange with partition is temporary: 't' ERROR HY000: Table to exchange with partition is temporary: 't'
SHOW CREATE TABLE t; SHOW CREATE TABLE t;
...@@ -1068,9 +1068,9 @@ tp CREATE TABLE `tp` ( ...@@ -1068,9 +1068,9 @@ tp CREATE TABLE `tp` (
PRIMARY KEY (`a`), PRIMARY KEY (`a`),
KEY `ba_key` (`b`,`a`) KEY `ba_key` (`b`,`a`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (a) PARTITION BY RANGE (a)
(PARTITION p0 VALUES LESS THAN (100) ENGINE = MyISAM, (PARTITION p0 VALUES LESS THAN (100) ENGINE = MyISAM,
PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = MyISAM) */ PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
DROP TEMPORARY TABLE t; DROP TEMPORARY TABLE t;
ALTER TABLE tmp2 RENAME TO t; ALTER TABLE tmp2 RENAME TO t;
# Test non partitioned table # Test non partitioned table
......
...@@ -202,7 +202,7 @@ t1 CREATE TABLE `t1` ( ...@@ -202,7 +202,7 @@ t1 CREATE TABLE `t1` (
PRIMARY KEY (`a`), PRIMARY KEY (`a`),
KEY `b` (`b`,`a`) KEY `b` (`b`,`a`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (a) PARTITION BY RANGE (a)
SUBPARTITION BY HASH (a) SUBPARTITION BY HASH (a)
(PARTITION pNeg VALUES LESS THAN (0) (PARTITION pNeg VALUES LESS THAN (0)
(SUBPARTITION subp0 ENGINE = InnoDB, (SUBPARTITION subp0 ENGINE = InnoDB,
...@@ -215,7 +215,7 @@ SUBPARTITION BY HASH (a) ...@@ -215,7 +215,7 @@ SUBPARTITION BY HASH (a)
SUBPARTITION subp5 ENGINE = InnoDB), SUBPARTITION subp5 ENGINE = InnoDB),
PARTITION `p100-99999` VALUES LESS THAN (100000) PARTITION `p100-99999` VALUES LESS THAN (100000)
(SUBPARTITION subp6 ENGINE = InnoDB, (SUBPARTITION subp6 ENGINE = InnoDB,
SUBPARTITION subp7 ENGINE = InnoDB)) */ SUBPARTITION subp7 ENGINE = InnoDB))
# First test that the syntax is OK # First test that the syntax is OK
SHOW CREATE TABLE t1 PARTITION (subp0); SHOW CREATE TABLE t1 PARTITION (subp0);
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PARTITION (subp0)' at line 1 ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PARTITION (subp0)' at line 1
...@@ -1125,7 +1125,7 @@ t1 CREATE TABLE `t1` ( ...@@ -1125,7 +1125,7 @@ t1 CREATE TABLE `t1` (
PRIMARY KEY (`a`), PRIMARY KEY (`a`),
KEY `b` (`b`,`a`) KEY `b` (`b`,`a`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (a) PARTITION BY RANGE (a)
SUBPARTITION BY HASH (a) SUBPARTITION BY HASH (a)
(PARTITION pNeg VALUES LESS THAN (0) (PARTITION pNeg VALUES LESS THAN (0)
(SUBPARTITION subp0 ENGINE = InnoDB, (SUBPARTITION subp0 ENGINE = InnoDB,
...@@ -1138,7 +1138,7 @@ SUBPARTITION BY HASH (a) ...@@ -1138,7 +1138,7 @@ SUBPARTITION BY HASH (a)
SUBPARTITION subp5 ENGINE = InnoDB), SUBPARTITION subp5 ENGINE = InnoDB),
PARTITION `p100-99999` VALUES LESS THAN (100000) PARTITION `p100-99999` VALUES LESS THAN (100000)
(SUBPARTITION subp6 ENGINE = InnoDB, (SUBPARTITION subp6 ENGINE = InnoDB,
SUBPARTITION subp7 ENGINE = InnoDB)) */ SUBPARTITION subp7 ENGINE = InnoDB))
SELECT * FROM t1; SELECT * FROM t1;
a b a b
-4 (pNeg-)subp0, Updated, Updated2, Updated from a = -2 -4 (pNeg-)subp0, Updated, Updated2, Updated from a = -2
...@@ -1157,7 +1157,7 @@ t2 CREATE TABLE `t2` ( ...@@ -1157,7 +1157,7 @@ t2 CREATE TABLE `t2` (
PRIMARY KEY (`a`), PRIMARY KEY (`a`),
KEY `b` (`b`,`a`) KEY `b` (`b`,`a`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (a) PARTITION BY RANGE (a)
SUBPARTITION BY HASH (a) SUBPARTITION BY HASH (a)
(PARTITION pNeg VALUES LESS THAN (0) (PARTITION pNeg VALUES LESS THAN (0)
(SUBPARTITION subp0 ENGINE = InnoDB, (SUBPARTITION subp0 ENGINE = InnoDB,
...@@ -1170,7 +1170,7 @@ SUBPARTITION BY HASH (a) ...@@ -1170,7 +1170,7 @@ SUBPARTITION BY HASH (a)
SUBPARTITION subp5 ENGINE = InnoDB), SUBPARTITION subp5 ENGINE = InnoDB),
PARTITION `p100-99999` VALUES LESS THAN (100000) PARTITION `p100-99999` VALUES LESS THAN (100000)
(SUBPARTITION subp6 ENGINE = InnoDB, (SUBPARTITION subp6 ENGINE = InnoDB,
SUBPARTITION subp7 ENGINE = InnoDB)) */ SUBPARTITION subp7 ENGINE = InnoDB))
SELECT * FROM t2; SELECT * FROM t2;
a b a b
10 p10-99 10 p10-99
...@@ -1657,7 +1657,7 @@ t1 CREATE TABLE `t1` ( ...@@ -1657,7 +1657,7 @@ t1 CREATE TABLE `t1` (
PRIMARY KEY (`a`), PRIMARY KEY (`a`),
KEY `b` (`b`,`a`) KEY `b` (`b`,`a`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (a) PARTITION BY RANGE (a)
SUBPARTITION BY HASH (a) SUBPARTITION BY HASH (a)
(PARTITION pNeg VALUES LESS THAN (0) (PARTITION pNeg VALUES LESS THAN (0)
(SUBPARTITION subp0 ENGINE = InnoDB, (SUBPARTITION subp0 ENGINE = InnoDB,
...@@ -1678,7 +1678,7 @@ SUBPARTITION BY HASH (a) ...@@ -1678,7 +1678,7 @@ SUBPARTITION BY HASH (a)
PARTITION `p3000-299999` VALUES LESS THAN (300000) PARTITION `p3000-299999` VALUES LESS THAN (300000)
(SUBPARTITION subp12 ENGINE = InnoDB, (SUBPARTITION subp12 ENGINE = InnoDB,
SUBPARTITION subp13 ENGINE = InnoDB, SUBPARTITION subp13 ENGINE = InnoDB,
SUBPARTITION subp14 ENGINE = InnoDB)) */ SUBPARTITION subp14 ENGINE = InnoDB))
INSERT INTO t1 VALUES (-9, "negative nine"), (-8, "-8"), (-7, "-7"), (-6, "-6"), (-5, "-5"), (-4, "-4"), (-3, "-3"), (-2, "-2"), (-1, "-1"); INSERT INTO t1 VALUES (-9, "negative nine"), (-8, "-8"), (-7, "-7"), (-6, "-6"), (-5, "-5"), (-4, "-4"), (-3, "-3"), (-2, "-2"), (-1, "-1");
INSERT INTO t1 VALUES (9, "nine"), (8, "8"), (7, "7"), (6, "6"), (5, "5"), (4, "4"), (3, "3"), (2, "2"), (1, "1"); INSERT INTO t1 VALUES (9, "nine"), (8, "8"), (7, "7"), (6, "6"), (5, "5"), (4, "4"), (3, "3"), (2, "2"), (1, "1");
INSERT INTO t1 VALUES (39, "Thirty nine"), (38, "38"), (37, "37"), (36, "36"), (35, "35"), (34, "34"), (33, "33"), (32, "32"), (31, "31"); INSERT INTO t1 VALUES (39, "Thirty nine"), (38, "38"), (37, "37"), (36, "36"), (35, "35"), (34, "34"), (33, "33"), (32, "32"), (31, "31");
......
...@@ -446,7 +446,7 @@ Table Create Table ...@@ -446,7 +446,7 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL `a` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (a) */ PARTITION BY KEY (a)
drop table t1; drop table t1;
create table t1 (a int) create table t1 (a int)
engine = innodb engine = innodb
...@@ -460,8 +460,8 @@ Table Create Table ...@@ -460,8 +460,8 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL `a` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (a) PARTITION BY LIST (a)
(PARTITION p0 VALUES IN (0) ENGINE = InnoDB) */ (PARTITION p0 VALUES IN (0) ENGINE = InnoDB)
drop table t1; drop table t1;
SET SQL_MODE=default; SET SQL_MODE=default;
create table t1 create table t1
...@@ -539,10 +539,10 @@ t1 CREATE TABLE `t1` ( ...@@ -539,10 +539,10 @@ t1 CREATE TABLE `t1` (
`int_column` int(11) DEFAULT NULL, `int_column` int(11) DEFAULT NULL,
`char_column` char(5) DEFAULT NULL `char_column` char(5) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (int_column) PARTITION BY RANGE (int_column)
SUBPARTITION BY KEY (char_column) SUBPARTITION BY KEY (char_column)
SUBPARTITIONS 2 SUBPARTITIONS 2
(PARTITION p1 VALUES LESS THAN (5) ENGINE = MyISAM) */ (PARTITION p1 VALUES LESS THAN (5) ENGINE = MyISAM)
drop table t1; drop table t1;
CREATE TABLE t1 (a INT) ENGINE=InnoDB CREATE TABLE t1 (a INT) ENGINE=InnoDB
PARTITION BY list(a) (PARTITION p1 VALUES IN (1)); PARTITION BY list(a) (PARTITION p1 VALUES IN (1));
...@@ -587,8 +587,8 @@ t1 CREATE TABLE `t1` ( ...@@ -587,8 +587,8 @@ t1 CREATE TABLE `t1` (
`b` int(11) NOT NULL, `b` int(11) NOT NULL,
PRIMARY KEY (`a`) PRIMARY KEY (`a`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (a) PARTITION BY KEY (a)
PARTITIONS 2 */ PARTITIONS 2
SELECT * FROM t1; SELECT * FROM t1;
a b a b
1 2 1 2
......
...@@ -29,9 +29,9 @@ t1 CREATE TABLE `t1` ( ...@@ -29,9 +29,9 @@ t1 CREATE TABLE `t1` (
`id2` bigint(20) NOT NULL, `id2` bigint(20) NOT NULL,
PRIMARY KEY (`id`,`time`) PRIMARY KEY (`id`,`time`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8
/*!50100 PARTITION BY RANGE (TO_DAYS(time)) PARTITION BY RANGE (TO_DAYS(time))
(PARTITION p10 VALUES LESS THAN (734708) ENGINE = InnoDB, (PARTITION p10 VALUES LESS THAN (734708) ENGINE = InnoDB,
PARTITION p20 VALUES LESS THAN MAXVALUE ENGINE = InnoDB) */ PARTITION p20 VALUES LESS THAN MAXVALUE ENGINE = InnoDB)
DROP TABLE t1; DROP TABLE t1;
call mtr.add_suppression("InnoDB: Error: table `test`.`t1` .* InnoDB internal"); call mtr.add_suppression("InnoDB: Error: table `test`.`t1` .* InnoDB internal");
# #
...@@ -62,8 +62,8 @@ t1 CREATE TABLE `t1` ( ...@@ -62,8 +62,8 @@ t1 CREATE TABLE `t1` (
`user_num` char(10) DEFAULT NULL, `user_num` char(10) DEFAULT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 KEY_BLOCK_SIZE=4 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 KEY_BLOCK_SIZE=4
/*!50100 PARTITION BY HASH (id) PARTITION BY HASH (id)
PARTITIONS 1 */ PARTITIONS 1
SET GLOBAL innodb_file_per_table = OFF; SET GLOBAL innodb_file_per_table = OFF;
disconnect con1; disconnect con1;
connect con2,localhost,root,,; connect con2,localhost,root,,;
...@@ -100,8 +100,8 @@ t1 CREATE TABLE `t1` ( ...@@ -100,8 +100,8 @@ t1 CREATE TABLE `t1` (
`user_num` char(10) DEFAULT NULL, `user_num` char(10) DEFAULT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 KEY_BLOCK_SIZE=4 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 KEY_BLOCK_SIZE=4
/*!50100 PARTITION BY HASH (id) PARTITION BY HASH (id)
PARTITIONS 3 */ PARTITIONS 3
DROP TABLE t1; DROP TABLE t1;
disconnect con2; disconnect con2;
connection default; connection default;
......
...@@ -24,8 +24,8 @@ t1 CREATE TABLE `t1` ( ...@@ -24,8 +24,8 @@ t1 CREATE TABLE `t1` (
`f_date` date DEFAULT NULL, `f_date` date DEFAULT NULL,
`f_varchar` varchar(30) DEFAULT NULL `f_varchar` varchar(30) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (YEAR(f_date)) PARTITION BY HASH (YEAR(f_date))
PARTITIONS 2 */ PARTITIONS 2
ALTER TABLE t1 COALESCE PARTITION 1; ALTER TABLE t1 COALESCE PARTITION 1;
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
Table Create Table Table Create Table
...@@ -33,8 +33,8 @@ t1 CREATE TABLE `t1` ( ...@@ -33,8 +33,8 @@ t1 CREATE TABLE `t1` (
`f_date` date DEFAULT NULL, `f_date` date DEFAULT NULL,
`f_varchar` varchar(30) DEFAULT NULL `f_varchar` varchar(30) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (YEAR(f_date)) PARTITION BY HASH (YEAR(f_date))
PARTITIONS 1 */ PARTITIONS 1
drop table t1; drop table t1;
create table t1 (a int) create table t1 (a int)
partition by list (a) partition by list (a)
...@@ -58,8 +58,8 @@ Table Create Table ...@@ -58,8 +58,8 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL `a` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (a) PARTITION BY HASH (a)
PARTITIONS 5 */ PARTITIONS 5
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a INT) CREATE TABLE t1 (a INT)
/*!50100 PARTITION BY HASH (a) /*!50100 PARTITION BY HASH (a)
...@@ -70,8 +70,8 @@ Table Create Table ...@@ -70,8 +70,8 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL `a` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (a) PARTITION BY HASH (a)
PARTITIONS 5 */ PARTITIONS 5
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a INT) CREATE TABLE t1 (a INT)
/*!50100 PARTITION BY HASH (a) /*!50100 PARTITION BY HASH (a)
...@@ -81,8 +81,8 @@ Table Create Table ...@@ -81,8 +81,8 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL `a` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (a) PARTITION BY HASH (a)
PARTITIONS 5 */ PARTITIONS 5
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a INT) /*!50100 PARTITION BY HASH (a) PARTITIONS 5 */; CREATE TABLE t1 (a INT) /*!50100 PARTITION BY HASH (a) PARTITIONS 5 */;
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
...@@ -90,6 +90,6 @@ Table Create Table ...@@ -90,6 +90,6 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL `a` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (a) PARTITION BY HASH (a)
PARTITIONS 5 */ PARTITIONS 5
DROP TABLE t1; DROP TABLE t1;
...@@ -145,8 +145,8 @@ Table Create Table ...@@ -145,8 +145,8 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL `a` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (a) PARTITION BY KEY (a)
PARTITIONS 2 */ PARTITIONS 2
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a INT) PARTITION BY HASH(a); CREATE TABLE t1 (a INT) PARTITION BY HASH(a);
ALTER TABLE t1 ADD PARTITION PARTITIONS 4; ALTER TABLE t1 ADD PARTITION PARTITIONS 4;
......
...@@ -27,10 +27,10 @@ Table Create Table ...@@ -27,10 +27,10 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`i` int(11) DEFAULT NULL `i` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 CHECKSUM=1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1 CHECKSUM=1
/*!50100 PARTITION BY RANGE (i) PARTITION BY RANGE (i)
(PARTITION p3 VALUES LESS THAN (3) ENGINE = MyISAM, (PARTITION p3 VALUES LESS THAN (3) ENGINE = MyISAM,
PARTITION p5 VALUES LESS THAN (5) ENGINE = MyISAM, PARTITION p5 VALUES LESS THAN (5) ENGINE = MyISAM,
PARTITION pMax VALUES LESS THAN MAXVALUE ENGINE = MyISAM) */ PARTITION pMax VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
DROP TABLE t1; DROP TABLE t1;
# Same test without partitioning # Same test without partitioning
CREATE TABLE t1 ( CREATE TABLE t1 (
...@@ -131,7 +131,7 @@ t1 CREATE TABLE `t1` ( ...@@ -131,7 +131,7 @@ t1 CREATE TABLE `t1` (
`a` int(11) NOT NULL AUTO_INCREMENT, `a` int(11) NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`a`) PRIMARY KEY (`a`)
) ENGINE=MyISAM AUTO_INCREMENT=14 DEFAULT CHARSET=latin1 ) ENGINE=MyISAM AUTO_INCREMENT=14 DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (a) */ PARTITION BY KEY (a)
INSERT INTO t1 VALUES (NULL); INSERT INTO t1 VALUES (NULL);
SELECT * FROM t1; SELECT * FROM t1;
a a
......
...@@ -31,8 +31,8 @@ Table Create Table ...@@ -31,8 +31,8 @@ Table Create Table
t2 CREATE TABLE `t2` ( t2 CREATE TABLE `t2` (
`i` int(11) DEFAULT NULL `i` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (i) PARTITION BY RANGE (i)
(PARTITION p01 VALUES LESS THAN (1000) ENGINE = MyISAM) */ (PARTITION p01 VALUES LESS THAN (1000) ENGINE = MyISAM)
DROP TABLE t1, t2; DROP TABLE t1, t2;
set @@sql_mode=@org_mode; set @@sql_mode=@org_mode;
CREATE TABLE t1(a INT) CREATE TABLE t1(a INT)
......
...@@ -22,9 +22,9 @@ Table Create Table ...@@ -22,9 +22,9 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` datetime DEFAULT NULL `a` datetime DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50500 PARTITION BY RANGE (TO_DAYS(a)) PARTITION BY RANGE (TO_DAYS(a))
SUBPARTITION BY HASH (to_seconds(a)) SUBPARTITION BY HASH (to_seconds(a))
(PARTITION p0 VALUES LESS THAN (1) ENGINE = MyISAM) */ (PARTITION p0 VALUES LESS THAN (1) ENGINE = MyISAM)
drop table t1; drop table t1;
create table t1 (a int) create table t1 (a int)
partition by range (a) partition by range (a)
...@@ -62,9 +62,9 @@ Table Create Table ...@@ -62,9 +62,9 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` datetime NOT NULL `a` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50500 PARTITION BY RANGE (TO_SECONDS(a)) PARTITION BY RANGE (TO_SECONDS(a))
(PARTITION p0 VALUES LESS THAN (63340531200) ENGINE = MyISAM, (PARTITION p0 VALUES LESS THAN (63340531200) ENGINE = MyISAM,
PARTITION p1 VALUES LESS THAN (63342604800) ENGINE = MyISAM) */ PARTITION p1 VALUES LESS THAN (63342604800) ENGINE = MyISAM)
drop table t1; drop table t1;
create table t1 (a date) create table t1 (a date)
partition by range(to_seconds(a)) partition by range(to_seconds(a))
...@@ -93,9 +93,9 @@ Table Create Table ...@@ -93,9 +93,9 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` date DEFAULT NULL `a` date DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50500 PARTITION BY RANGE (to_seconds(a)) PARTITION BY RANGE (to_seconds(a))
(PARTITION p0 VALUES LESS THAN (63240134400) ENGINE = MyISAM, (PARTITION p0 VALUES LESS THAN (63240134400) ENGINE = MyISAM,
PARTITION p1 VALUES LESS THAN (63271756800) ENGINE = MyISAM) */ PARTITION p1 VALUES LESS THAN (63271756800) ENGINE = MyISAM)
drop table t1; drop table t1;
create table t1 (a datetime) create table t1 (a datetime)
partition by range(to_seconds(a)) partition by range(to_seconds(a))
...@@ -123,9 +123,9 @@ Table Create Table ...@@ -123,9 +123,9 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` datetime DEFAULT NULL `a` datetime DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50500 PARTITION BY RANGE (to_seconds(a)) PARTITION BY RANGE (to_seconds(a))
(PARTITION p0 VALUES LESS THAN (63240177600) ENGINE = MyISAM, (PARTITION p0 VALUES LESS THAN (63240177600) ENGINE = MyISAM,
PARTITION p1 VALUES LESS THAN (63271800000) ENGINE = MyISAM) */ PARTITION p1 VALUES LESS THAN (63271800000) ENGINE = MyISAM)
drop table t1; drop table t1;
create table t1 (a int, b char(20)) create table t1 (a int, b char(20))
partition by range columns(a,b) partition by range columns(a,b)
...@@ -153,8 +153,8 @@ Table Create Table ...@@ -153,8 +153,8 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL `a` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (a) PARTITION BY RANGE (a)
(PARTITION p0 VALUES LESS THAN MAXVALUE ENGINE = MyISAM) */ (PARTITION p0 VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
drop table t1; drop table t1;
create table t1 (a integer) create table t1 (a integer)
partition by range (a) partition by range (a)
...@@ -284,10 +284,10 @@ t1 CREATE TABLE `t1` ( ...@@ -284,10 +284,10 @@ t1 CREATE TABLE `t1` (
`c` int(11) NOT NULL, `c` int(11) NOT NULL,
PRIMARY KEY (`a`,`b`) PRIMARY KEY (`a`,`b`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (a) PARTITION BY RANGE (a)
(PARTITION x1 VALUES LESS THAN (5) TABLESPACE = ts1 ENGINE = MyISAM, (PARTITION x1 VALUES LESS THAN (5) TABLESPACE = ts1 ENGINE = MyISAM,
PARTITION x2 VALUES LESS THAN (10) TABLESPACE = ts2 ENGINE = MyISAM, PARTITION x2 VALUES LESS THAN (10) TABLESPACE = ts2 ENGINE = MyISAM,
PARTITION x3 VALUES LESS THAN MAXVALUE TABLESPACE = ts3 ENGINE = MyISAM) */ PARTITION x3 VALUES LESS THAN MAXVALUE TABLESPACE = ts3 ENGINE = MyISAM)
ALTER TABLE t1 ALTER TABLE t1
partition by range (a) partition by range (a)
partitions 3 partitions 3
...@@ -308,10 +308,10 @@ t1 CREATE TABLE `t1` ( ...@@ -308,10 +308,10 @@ t1 CREATE TABLE `t1` (
`c` int(11) NOT NULL, `c` int(11) NOT NULL,
PRIMARY KEY (`a`,`b`) PRIMARY KEY (`a`,`b`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (a) PARTITION BY RANGE (a)
(PARTITION x1 VALUES LESS THAN (5) TABLESPACE = ts1 ENGINE = MyISAM, (PARTITION x1 VALUES LESS THAN (5) TABLESPACE = ts1 ENGINE = MyISAM,
PARTITION x2 VALUES LESS THAN (10) TABLESPACE = ts2 ENGINE = MyISAM, PARTITION x2 VALUES LESS THAN (10) TABLESPACE = ts2 ENGINE = MyISAM,
PARTITION x3 VALUES LESS THAN MAXVALUE TABLESPACE = ts3 ENGINE = MyISAM) */ PARTITION x3 VALUES LESS THAN MAXVALUE TABLESPACE = ts3 ENGINE = MyISAM)
drop table if exists t1; drop table if exists t1;
CREATE TABLE t1 ( CREATE TABLE t1 (
a int not null, a int not null,
...@@ -409,14 +409,14 @@ t1 CREATE TABLE `t1` ( ...@@ -409,14 +409,14 @@ t1 CREATE TABLE `t1` (
`c` int(11) NOT NULL, `c` int(11) NOT NULL,
PRIMARY KEY (`a`,`b`) PRIMARY KEY (`a`,`b`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (a) PARTITION BY RANGE (a)
SUBPARTITION BY HASH (a+b) SUBPARTITION BY HASH (a+b)
(PARTITION x1 VALUES LESS THAN (1) (PARTITION x1 VALUES LESS THAN (1)
(SUBPARTITION x11 ENGINE = MyISAM, (SUBPARTITION x11 ENGINE = MyISAM,
SUBPARTITION x12 ENGINE = MyISAM), SUBPARTITION x12 ENGINE = MyISAM),
PARTITION x2 VALUES LESS THAN (5) PARTITION x2 VALUES LESS THAN (5)
(SUBPARTITION x21 ENGINE = MyISAM, (SUBPARTITION x21 ENGINE = MyISAM,
SUBPARTITION x22 ENGINE = MyISAM)) */ SUBPARTITION x22 ENGINE = MyISAM))
ALTER TABLE t1 ADD COLUMN d int; ALTER TABLE t1 ADD COLUMN d int;
show create table t1; show create table t1;
Table Create Table Table Create Table
...@@ -427,14 +427,14 @@ t1 CREATE TABLE `t1` ( ...@@ -427,14 +427,14 @@ t1 CREATE TABLE `t1` (
`d` int(11) DEFAULT NULL, `d` int(11) DEFAULT NULL,
PRIMARY KEY (`a`,`b`) PRIMARY KEY (`a`,`b`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (a) PARTITION BY RANGE (a)
SUBPARTITION BY HASH (a+b) SUBPARTITION BY HASH (a+b)
(PARTITION x1 VALUES LESS THAN (1) (PARTITION x1 VALUES LESS THAN (1)
(SUBPARTITION x11 ENGINE = MyISAM, (SUBPARTITION x11 ENGINE = MyISAM,
SUBPARTITION x12 ENGINE = MyISAM), SUBPARTITION x12 ENGINE = MyISAM),
PARTITION x2 VALUES LESS THAN (5) PARTITION x2 VALUES LESS THAN (5)
(SUBPARTITION x21 ENGINE = MyISAM, (SUBPARTITION x21 ENGINE = MyISAM,
SUBPARTITION x22 ENGINE = MyISAM)) */ SUBPARTITION x22 ENGINE = MyISAM))
drop table t1; drop table t1;
CREATE TABLE t1 ( CREATE TABLE t1 (
a int not null, a int not null,
...@@ -658,9 +658,9 @@ Table Create Table ...@@ -658,9 +658,9 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` bigint(20) unsigned DEFAULT NULL `a` bigint(20) unsigned DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (a) PARTITION BY RANGE (a)
(PARTITION p0 VALUES LESS THAN (0) ENGINE = MyISAM, (PARTITION p0 VALUES LESS THAN (0) ENGINE = MyISAM,
PARTITION p1 VALUES LESS THAN (10) ENGINE = MyISAM) */ PARTITION p1 VALUES LESS THAN (10) ENGINE = MyISAM)
drop table t1; drop table t1;
create table t1 (a bigint unsigned) create table t1 (a bigint unsigned)
partition by range (a) partition by range (a)
...@@ -671,9 +671,9 @@ Table Create Table ...@@ -671,9 +671,9 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` bigint(20) unsigned DEFAULT NULL `a` bigint(20) unsigned DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (a) PARTITION BY RANGE (a)
(PARTITION p0 VALUES LESS THAN (2) ENGINE = MyISAM, (PARTITION p0 VALUES LESS THAN (2) ENGINE = MyISAM,
PARTITION p1 VALUES LESS THAN (10) ENGINE = MyISAM) */ PARTITION p1 VALUES LESS THAN (10) ENGINE = MyISAM)
insert into t1 values (0xFFFFFFFFFFFFFFFF); insert into t1 values (0xFFFFFFFFFFFFFFFF);
ERROR HY000: Table has no partition for value 18446744073709551615 ERROR HY000: Table has no partition for value 18446744073709551615
drop table t1; drop table t1;
......
...@@ -22,10 +22,10 @@ Table Create Table ...@@ -22,10 +22,10 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL `a` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (a) PARTITION BY LIST (a)
(PARTITION p0 VALUES IN (0) DATA DIRECTORY = 'MYSQLTEST_VARDIR/tmp' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/tmp' ENGINE = MyISAM, (PARTITION p0 VALUES IN (0) DATA DIRECTORY = 'MYSQLTEST_VARDIR/tmp' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/tmp' ENGINE = MyISAM,
PARTITION p1 VALUES IN (1) DATA DIRECTORY = 'MYSQLTEST_VARDIR/tmp' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/tmp' ENGINE = MyISAM, PARTITION p1 VALUES IN (1) DATA DIRECTORY = 'MYSQLTEST_VARDIR/tmp' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/tmp' ENGINE = MyISAM,
PARTITION p2 VALUES IN (2) ENGINE = MyISAM) */ PARTITION p2 VALUES IN (2) ENGINE = MyISAM)
SHOW CREATE TABLE t2; SHOW CREATE TABLE t2;
Table Create Table Table Create Table
t2 CREATE TABLE `t2` ( t2 CREATE TABLE `t2` (
...@@ -158,8 +158,8 @@ Table Create Table ...@@ -158,8 +158,8 @@ Table Create Table
t2 CREATE TABLE `t2` ( t2 CREATE TABLE `t2` (
`i` int(11) DEFAULT NULL `i` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (i) PARTITION BY RANGE (i)
(PARTITION p01 VALUES LESS THAN (1000) ENGINE = MyISAM) */ (PARTITION p01 VALUES LESS THAN (1000) ENGINE = MyISAM)
DROP TABLE t1, t2; DROP TABLE t1, t2;
set @@sql_mode=@org_mode; set @@sql_mode=@org_mode;
create table t1 (a int) create table t1 (a int)
......
...@@ -7,8 +7,8 @@ Table Create Table ...@@ -7,8 +7,8 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` varchar(2) CHARACTER SET cp1250 DEFAULT NULL `a` varchar(2) CHARACTER SET cp1250 DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50500 PARTITION BY LIST COLUMNS(a) PARTITION BY LIST COLUMNS(a)
(PARTITION p0 VALUES IN (_cp1250 0x81) ENGINE = MyISAM) */ (PARTITION p0 VALUES IN (_cp1250 0x81) ENGINE = MyISAM)
drop table t1; drop table t1;
create table t1 (a varchar(2) character set cp1250) create table t1 (a varchar(2) character set cp1250)
partition by list columns (a) partition by list columns (a)
...@@ -18,8 +18,8 @@ Table Create Table ...@@ -18,8 +18,8 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` varchar(2) CHARACTER SET cp1250 DEFAULT NULL `a` varchar(2) CHARACTER SET cp1250 DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50500 PARTITION BY LIST COLUMNS(a) PARTITION BY LIST COLUMNS(a)
(PARTITION p0 VALUES IN ('€') ENGINE = MyISAM) */ (PARTITION p0 VALUES IN ('€') ENGINE = MyISAM)
drop table t1; drop table t1;
create table t1 (a varchar(1500), b varchar(1570)) create table t1 (a varchar(1500), b varchar(1570))
partition by list columns(a,b) partition by list columns(a,b)
...@@ -45,9 +45,9 @@ Table Create Table ...@@ -45,9 +45,9 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` varchar(2) CHARACTER SET ucs2 DEFAULT NULL `a` varchar(2) CHARACTER SET ucs2 DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50500 PARTITION BY LIST COLUMNS(a) PARTITION BY LIST COLUMNS(a)
(PARTITION p0 VALUES IN ('†') ENGINE = MyISAM, (PARTITION p0 VALUES IN ('†') ENGINE = MyISAM,
PARTITION p1 VALUES IN ('') ENGINE = MyISAM) */ PARTITION p1 VALUES IN ('') ENGINE = MyISAM)
insert into t1 values (''); insert into t1 values ('');
insert into t1 values (_ucs2 0x2020); insert into t1 values (_ucs2 0x2020);
drop table t1; drop table t1;
...@@ -84,7 +84,7 @@ Table Create Table ...@@ -84,7 +84,7 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL `a` int(11) DEFAULT NULL
) ENGINE=ARCHIVE DEFAULT CHARSET=latin1 ) ENGINE=ARCHIVE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (a) */ PARTITION BY HASH (a)
drop table t1; drop table t1;
CREATE TABLE t1(id MEDIUMINT NOT NULL AUTO_INCREMENT, CREATE TABLE t1(id MEDIUMINT NOT NULL AUTO_INCREMENT,
f1 VARCHAR(25), f1 VARCHAR(25),
...@@ -109,7 +109,7 @@ t1 CREATE TABLE `t1` ( ...@@ -109,7 +109,7 @@ t1 CREATE TABLE `t1` (
`f1` varchar(25) DEFAULT NULL, `f1` varchar(25) DEFAULT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=ARCHIVE AUTO_INCREMENT=101 DEFAULT CHARSET=latin1 ) ENGINE=ARCHIVE AUTO_INCREMENT=101 DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (id) PARTITION BY RANGE (id)
SUBPARTITION BY HASH (id) SUBPARTITION BY HASH (id)
SUBPARTITIONS 2 SUBPARTITIONS 2
(PARTITION pa1 VALUES LESS THAN (10) ENGINE = ARCHIVE, (PARTITION pa1 VALUES LESS THAN (10) ENGINE = ARCHIVE,
...@@ -122,7 +122,7 @@ SUBPARTITIONS 2 ...@@ -122,7 +122,7 @@ SUBPARTITIONS 2
PARTITION pa8 VALUES LESS THAN (80) ENGINE = ARCHIVE, PARTITION pa8 VALUES LESS THAN (80) ENGINE = ARCHIVE,
PARTITION pa9 VALUES LESS THAN (90) ENGINE = ARCHIVE, PARTITION pa9 VALUES LESS THAN (90) ENGINE = ARCHIVE,
PARTITION pa10 VALUES LESS THAN (100) ENGINE = ARCHIVE, PARTITION pa10 VALUES LESS THAN (100) ENGINE = ARCHIVE,
PARTITION pa11 VALUES LESS THAN MAXVALUE ENGINE = ARCHIVE) */ PARTITION pa11 VALUES LESS THAN MAXVALUE ENGINE = ARCHIVE)
select count(*) from t1; select count(*) from t1;
count(*) count(*)
100 100
...@@ -138,8 +138,8 @@ t1 CREATE TABLE `t1` ( ...@@ -138,8 +138,8 @@ t1 CREATE TABLE `t1` (
`fld1` int(11) NOT NULL, `fld1` int(11) NOT NULL,
PRIMARY KEY (`fld1`) PRIMARY KEY (`fld1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (fld1) PARTITION BY HASH (fld1)
PARTITIONS 5 */ PARTITIONS 5
ALTER TABLE t1 ENGINE= ARCHIVE; ALTER TABLE t1 ENGINE= ARCHIVE;
ERROR HY000: Can't create table `test`.`#sql-temporary` (errno: 140 "Wrong create options") ERROR HY000: Can't create table `test`.`#sql-temporary` (errno: 140 "Wrong create options")
#After the patch, the ENGINE is correctly displayed as MyISAM #After the patch, the ENGINE is correctly displayed as MyISAM
...@@ -149,8 +149,8 @@ t1 CREATE TABLE `t1` ( ...@@ -149,8 +149,8 @@ t1 CREATE TABLE `t1` (
`fld1` int(11) NOT NULL, `fld1` int(11) NOT NULL,
PRIMARY KEY (`fld1`) PRIMARY KEY (`fld1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (fld1) PARTITION BY HASH (fld1)
PARTITIONS 5 */ PARTITIONS 5
#Cleanup. #Cleanup.
DROP TABLE t1; DROP TABLE t1;
create database mysqltest1; create database mysqltest1;
......
...@@ -31,8 +31,8 @@ Table Create Table ...@@ -31,8 +31,8 @@ Table Create Table
t4 CREATE TABLE `t4` ( t4 CREATE TABLE `t4` (
`a` int(11) DEFAULT NULL `a` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 `encrypted`=yes ) ENGINE=InnoDB DEFAULT CHARSET=latin1 `encrypted`=yes
/*!50100 PARTITION BY HASH (a) PARTITION BY HASH (a)
PARTITIONS 2 */ PARTITIONS 2
alter table t1 encrypted=no; alter table t1 encrypted=no;
ERROR HY000: Can't create table `test`.`#sql-temporary` (errno: 140 "Wrong create options") ERROR HY000: Can't create table `test`.`#sql-temporary` (errno: 140 "Wrong create options")
alter table t2 encrypted=yes; alter table t2 encrypted=yes;
......
...@@ -24,13 +24,13 @@ t1 CREATE TABLE `t1` ( ...@@ -24,13 +24,13 @@ t1 CREATE TABLE `t1` (
`c2` char(10) DEFAULT NULL, `c2` char(10) DEFAULT NULL,
PRIMARY KEY (`c1`) PRIMARY KEY (`c1`)
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (c1) PARTITION BY RANGE (c1)
(PARTITION p0 VALUES LESS THAN (100) ENGINE = ENGINE, (PARTITION p0 VALUES LESS THAN (100) ENGINE = ENGINE,
PARTITION p1 VALUES LESS THAN (200) ENGINE = ENGINE, PARTITION p1 VALUES LESS THAN (200) ENGINE = ENGINE,
PARTITION p2 VALUES LESS THAN (300) ENGINE = ENGINE, PARTITION p2 VALUES LESS THAN (300) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN (400) ENGINE = ENGINE, PARTITION p3 VALUES LESS THAN (400) ENGINE = ENGINE,
PARTITION p4 VALUES LESS THAN (500) ENGINE = ENGINE, PARTITION p4 VALUES LESS THAN (500) ENGINE = ENGINE,
PARTITION p5 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p5 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
ALTER TABLE t1 ANALYZE PARTITION p1,p2; ALTER TABLE t1 ANALYZE PARTITION p1,p2;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t1 analyze status OK test.t1 analyze status OK
...@@ -48,13 +48,13 @@ t1 CREATE TABLE `t1` ( ...@@ -48,13 +48,13 @@ t1 CREATE TABLE `t1` (
`c2` char(10) DEFAULT NULL, `c2` char(10) DEFAULT NULL,
PRIMARY KEY (`c1`) PRIMARY KEY (`c1`)
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (c1) PARTITION BY RANGE (c1)
(PARTITION p0 VALUES LESS THAN (100) ENGINE = ENGINE, (PARTITION p0 VALUES LESS THAN (100) ENGINE = ENGINE,
PARTITION p1 VALUES LESS THAN (200) ENGINE = ENGINE, PARTITION p1 VALUES LESS THAN (200) ENGINE = ENGINE,
PARTITION p2 VALUES LESS THAN (300) ENGINE = ENGINE, PARTITION p2 VALUES LESS THAN (300) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN (400) ENGINE = ENGINE, PARTITION p3 VALUES LESS THAN (400) ENGINE = ENGINE,
PARTITION p4 VALUES LESS THAN (500) ENGINE = ENGINE, PARTITION p4 VALUES LESS THAN (500) ENGINE = ENGINE,
PARTITION p5 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p5 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -34,8 +34,8 @@ t1 CREATE TABLE `t1` ( ...@@ -34,8 +34,8 @@ t1 CREATE TABLE `t1` (
`c1` tinyint(4) NOT NULL, `c1` tinyint(4) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (c1) PARTITION BY HASH (c1)
PARTITIONS 5 */ PARTITIONS 5
ALTER TABLE t1 COALESCE PARTITION 2; ALTER TABLE t1 COALESCE PARTITION 2;
SELECT * FROM t1 ORDER BY c1; SELECT * FROM t1 ORDER BY c1;
c1 c2 c1 c2
...@@ -56,8 +56,8 @@ t1 CREATE TABLE `t1` ( ...@@ -56,8 +56,8 @@ t1 CREATE TABLE `t1` (
`c1` tinyint(4) NOT NULL, `c1` tinyint(4) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (c1) PARTITION BY HASH (c1)
PARTITIONS 3 */ PARTITIONS 3
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -97,8 +97,8 @@ t1 CREATE TABLE `t1` ( ...@@ -97,8 +97,8 @@ t1 CREATE TABLE `t1` (
`c1` smallint(6) NOT NULL, `c1` smallint(6) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (c1) PARTITION BY HASH (c1)
PARTITIONS 5 */ PARTITIONS 5
ALTER TABLE t1 COALESCE PARTITION 2; ALTER TABLE t1 COALESCE PARTITION 2;
SELECT * FROM t1 ORDER BY c1; SELECT * FROM t1 ORDER BY c1;
c1 c2 c1 c2
...@@ -119,8 +119,8 @@ t1 CREATE TABLE `t1` ( ...@@ -119,8 +119,8 @@ t1 CREATE TABLE `t1` (
`c1` smallint(6) NOT NULL, `c1` smallint(6) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (c1) PARTITION BY HASH (c1)
PARTITIONS 3 */ PARTITIONS 3
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -160,8 +160,8 @@ t1 CREATE TABLE `t1` ( ...@@ -160,8 +160,8 @@ t1 CREATE TABLE `t1` (
`c1` mediumint(9) NOT NULL, `c1` mediumint(9) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (c1) PARTITION BY HASH (c1)
PARTITIONS 5 */ PARTITIONS 5
ALTER TABLE t1 COALESCE PARTITION 2; ALTER TABLE t1 COALESCE PARTITION 2;
SELECT * FROM t1 ORDER BY c1; SELECT * FROM t1 ORDER BY c1;
c1 c2 c1 c2
...@@ -182,8 +182,8 @@ t1 CREATE TABLE `t1` ( ...@@ -182,8 +182,8 @@ t1 CREATE TABLE `t1` (
`c1` mediumint(9) NOT NULL, `c1` mediumint(9) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (c1) PARTITION BY HASH (c1)
PARTITIONS 3 */ PARTITIONS 3
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -223,8 +223,8 @@ t1 CREATE TABLE `t1` ( ...@@ -223,8 +223,8 @@ t1 CREATE TABLE `t1` (
`c1` int(11) NOT NULL, `c1` int(11) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (c1) PARTITION BY HASH (c1)
PARTITIONS 5 */ PARTITIONS 5
ALTER TABLE t1 COALESCE PARTITION 2; ALTER TABLE t1 COALESCE PARTITION 2;
SELECT * FROM t1 ORDER BY c1; SELECT * FROM t1 ORDER BY c1;
c1 c2 c1 c2
...@@ -245,8 +245,8 @@ t1 CREATE TABLE `t1` ( ...@@ -245,8 +245,8 @@ t1 CREATE TABLE `t1` (
`c1` int(11) NOT NULL, `c1` int(11) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (c1) PARTITION BY HASH (c1)
PARTITIONS 3 */ PARTITIONS 3
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -286,8 +286,8 @@ t1 CREATE TABLE `t1` ( ...@@ -286,8 +286,8 @@ t1 CREATE TABLE `t1` (
`c1` int(11) NOT NULL, `c1` int(11) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (c1) PARTITION BY HASH (c1)
PARTITIONS 5 */ PARTITIONS 5
ALTER TABLE t1 COALESCE PARTITION 2; ALTER TABLE t1 COALESCE PARTITION 2;
SELECT * FROM t1 ORDER BY c1; SELECT * FROM t1 ORDER BY c1;
c1 c2 c1 c2
...@@ -308,8 +308,8 @@ t1 CREATE TABLE `t1` ( ...@@ -308,8 +308,8 @@ t1 CREATE TABLE `t1` (
`c1` int(11) NOT NULL, `c1` int(11) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (c1) PARTITION BY HASH (c1)
PARTITIONS 3 */ PARTITIONS 3
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -349,8 +349,8 @@ t1 CREATE TABLE `t1` ( ...@@ -349,8 +349,8 @@ t1 CREATE TABLE `t1` (
`c1` bigint(20) NOT NULL, `c1` bigint(20) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (c1) PARTITION BY HASH (c1)
PARTITIONS 5 */ PARTITIONS 5
ALTER TABLE t1 COALESCE PARTITION 2; ALTER TABLE t1 COALESCE PARTITION 2;
SELECT * FROM t1 ORDER BY c1; SELECT * FROM t1 ORDER BY c1;
c1 c2 c1 c2
...@@ -371,8 +371,8 @@ t1 CREATE TABLE `t1` ( ...@@ -371,8 +371,8 @@ t1 CREATE TABLE `t1` (
`c1` bigint(20) NOT NULL, `c1` bigint(20) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (c1) PARTITION BY HASH (c1)
PARTITIONS 3 */ PARTITIONS 3
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -412,8 +412,8 @@ t1 CREATE TABLE `t1` ( ...@@ -412,8 +412,8 @@ t1 CREATE TABLE `t1` (
`c1` tinyint(4) NOT NULL, `c1` tinyint(4) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (c1) PARTITION BY KEY (c1)
PARTITIONS 5 */ PARTITIONS 5
ALTER TABLE t1 COALESCE PARTITION 2; ALTER TABLE t1 COALESCE PARTITION 2;
SELECT * FROM t1 ORDER BY c1; SELECT * FROM t1 ORDER BY c1;
c1 c2 c1 c2
...@@ -434,8 +434,8 @@ t1 CREATE TABLE `t1` ( ...@@ -434,8 +434,8 @@ t1 CREATE TABLE `t1` (
`c1` tinyint(4) NOT NULL, `c1` tinyint(4) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (c1) PARTITION BY KEY (c1)
PARTITIONS 3 */ PARTITIONS 3
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -475,8 +475,8 @@ t1 CREATE TABLE `t1` ( ...@@ -475,8 +475,8 @@ t1 CREATE TABLE `t1` (
`c1` smallint(6) NOT NULL, `c1` smallint(6) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (c1) PARTITION BY KEY (c1)
PARTITIONS 5 */ PARTITIONS 5
ALTER TABLE t1 COALESCE PARTITION 2; ALTER TABLE t1 COALESCE PARTITION 2;
SELECT * FROM t1 ORDER BY c1; SELECT * FROM t1 ORDER BY c1;
c1 c2 c1 c2
...@@ -497,8 +497,8 @@ t1 CREATE TABLE `t1` ( ...@@ -497,8 +497,8 @@ t1 CREATE TABLE `t1` (
`c1` smallint(6) NOT NULL, `c1` smallint(6) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (c1) PARTITION BY KEY (c1)
PARTITIONS 3 */ PARTITIONS 3
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -538,8 +538,8 @@ t1 CREATE TABLE `t1` ( ...@@ -538,8 +538,8 @@ t1 CREATE TABLE `t1` (
`c1` mediumint(9) NOT NULL, `c1` mediumint(9) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (c1) PARTITION BY KEY (c1)
PARTITIONS 5 */ PARTITIONS 5
ALTER TABLE t1 COALESCE PARTITION 2; ALTER TABLE t1 COALESCE PARTITION 2;
SELECT * FROM t1 ORDER BY c1; SELECT * FROM t1 ORDER BY c1;
c1 c2 c1 c2
...@@ -560,8 +560,8 @@ t1 CREATE TABLE `t1` ( ...@@ -560,8 +560,8 @@ t1 CREATE TABLE `t1` (
`c1` mediumint(9) NOT NULL, `c1` mediumint(9) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (c1) PARTITION BY KEY (c1)
PARTITIONS 3 */ PARTITIONS 3
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -601,8 +601,8 @@ t1 CREATE TABLE `t1` ( ...@@ -601,8 +601,8 @@ t1 CREATE TABLE `t1` (
`c1` int(11) NOT NULL, `c1` int(11) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (c1) PARTITION BY KEY (c1)
PARTITIONS 5 */ PARTITIONS 5
ALTER TABLE t1 COALESCE PARTITION 2; ALTER TABLE t1 COALESCE PARTITION 2;
SELECT * FROM t1 ORDER BY c1; SELECT * FROM t1 ORDER BY c1;
c1 c2 c1 c2
...@@ -623,8 +623,8 @@ t1 CREATE TABLE `t1` ( ...@@ -623,8 +623,8 @@ t1 CREATE TABLE `t1` (
`c1` int(11) NOT NULL, `c1` int(11) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (c1) PARTITION BY KEY (c1)
PARTITIONS 3 */ PARTITIONS 3
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -664,8 +664,8 @@ t1 CREATE TABLE `t1` ( ...@@ -664,8 +664,8 @@ t1 CREATE TABLE `t1` (
`c1` int(11) NOT NULL, `c1` int(11) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (c1) PARTITION BY KEY (c1)
PARTITIONS 5 */ PARTITIONS 5
ALTER TABLE t1 COALESCE PARTITION 2; ALTER TABLE t1 COALESCE PARTITION 2;
SELECT * FROM t1 ORDER BY c1; SELECT * FROM t1 ORDER BY c1;
c1 c2 c1 c2
...@@ -686,8 +686,8 @@ t1 CREATE TABLE `t1` ( ...@@ -686,8 +686,8 @@ t1 CREATE TABLE `t1` (
`c1` int(11) NOT NULL, `c1` int(11) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (c1) PARTITION BY KEY (c1)
PARTITIONS 3 */ PARTITIONS 3
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -727,8 +727,8 @@ t1 CREATE TABLE `t1` ( ...@@ -727,8 +727,8 @@ t1 CREATE TABLE `t1` (
`c1` bigint(20) NOT NULL, `c1` bigint(20) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (c1) PARTITION BY KEY (c1)
PARTITIONS 5 */ PARTITIONS 5
ALTER TABLE t1 COALESCE PARTITION 2; ALTER TABLE t1 COALESCE PARTITION 2;
SELECT * FROM t1 ORDER BY c1; SELECT * FROM t1 ORDER BY c1;
c1 c2 c1 c2
...@@ -749,8 +749,8 @@ t1 CREATE TABLE `t1` ( ...@@ -749,8 +749,8 @@ t1 CREATE TABLE `t1` (
`c1` bigint(20) NOT NULL, `c1` bigint(20) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (c1) PARTITION BY KEY (c1)
PARTITIONS 3 */ PARTITIONS 3
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -24,13 +24,13 @@ t1 CREATE TABLE `t1` ( ...@@ -24,13 +24,13 @@ t1 CREATE TABLE `t1` (
`c2` char(10) DEFAULT NULL, `c2` char(10) DEFAULT NULL,
PRIMARY KEY (`c1`) PRIMARY KEY (`c1`)
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (c1) PARTITION BY RANGE (c1)
(PARTITION p0 VALUES LESS THAN (100) ENGINE = ENGINE, (PARTITION p0 VALUES LESS THAN (100) ENGINE = ENGINE,
PARTITION p1 VALUES LESS THAN (200) ENGINE = ENGINE, PARTITION p1 VALUES LESS THAN (200) ENGINE = ENGINE,
PARTITION p2 VALUES LESS THAN (300) ENGINE = ENGINE, PARTITION p2 VALUES LESS THAN (300) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN (400) ENGINE = ENGINE, PARTITION p3 VALUES LESS THAN (400) ENGINE = ENGINE,
PARTITION p4 VALUES LESS THAN (500) ENGINE = ENGINE, PARTITION p4 VALUES LESS THAN (500) ENGINE = ENGINE,
PARTITION p5 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p5 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
ALTER TABLE t1 CHECK PARTITION p1,p2; ALTER TABLE t1 CHECK PARTITION p1,p2;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t1 check status OK test.t1 check status OK
...@@ -48,13 +48,13 @@ t1 CREATE TABLE `t1` ( ...@@ -48,13 +48,13 @@ t1 CREATE TABLE `t1` (
`c2` char(10) DEFAULT NULL, `c2` char(10) DEFAULT NULL,
PRIMARY KEY (`c1`) PRIMARY KEY (`c1`)
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (c1) PARTITION BY RANGE (c1)
(PARTITION p0 VALUES LESS THAN (100) ENGINE = ENGINE, (PARTITION p0 VALUES LESS THAN (100) ENGINE = ENGINE,
PARTITION p1 VALUES LESS THAN (200) ENGINE = ENGINE, PARTITION p1 VALUES LESS THAN (200) ENGINE = ENGINE,
PARTITION p2 VALUES LESS THAN (300) ENGINE = ENGINE, PARTITION p2 VALUES LESS THAN (300) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN (400) ENGINE = ENGINE, PARTITION p3 VALUES LESS THAN (400) ENGINE = ENGINE,
PARTITION p4 VALUES LESS THAN (500) ENGINE = ENGINE, PARTITION p4 VALUES LESS THAN (500) ENGINE = ENGINE,
PARTITION p5 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p5 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -24,13 +24,13 @@ t1 CREATE TABLE `t1` ( ...@@ -24,13 +24,13 @@ t1 CREATE TABLE `t1` (
`c2` char(10) DEFAULT NULL, `c2` char(10) DEFAULT NULL,
PRIMARY KEY (`c1`) PRIMARY KEY (`c1`)
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (c1) PARTITION BY RANGE (c1)
(PARTITION p0 VALUES LESS THAN (100) ENGINE = ENGINE, (PARTITION p0 VALUES LESS THAN (100) ENGINE = ENGINE,
PARTITION p1 VALUES LESS THAN (200) ENGINE = ENGINE, PARTITION p1 VALUES LESS THAN (200) ENGINE = ENGINE,
PARTITION p2 VALUES LESS THAN (300) ENGINE = ENGINE, PARTITION p2 VALUES LESS THAN (300) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN (400) ENGINE = ENGINE, PARTITION p3 VALUES LESS THAN (400) ENGINE = ENGINE,
PARTITION p4 VALUES LESS THAN (500) ENGINE = ENGINE, PARTITION p4 VALUES LESS THAN (500) ENGINE = ENGINE,
PARTITION p5 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p5 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
ALTER TABLE t1 OPTIMIZE PARTITION p1,p2; ALTER TABLE t1 OPTIMIZE PARTITION p1,p2;
SELECT * FROM t1 ORDER BY c1; SELECT * FROM t1 ORDER BY c1;
c1 c2 c1 c2
...@@ -46,13 +46,13 @@ t1 CREATE TABLE `t1` ( ...@@ -46,13 +46,13 @@ t1 CREATE TABLE `t1` (
`c2` char(10) DEFAULT NULL, `c2` char(10) DEFAULT NULL,
PRIMARY KEY (`c1`) PRIMARY KEY (`c1`)
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (c1) PARTITION BY RANGE (c1)
(PARTITION p0 VALUES LESS THAN (100) ENGINE = ENGINE, (PARTITION p0 VALUES LESS THAN (100) ENGINE = ENGINE,
PARTITION p1 VALUES LESS THAN (200) ENGINE = ENGINE, PARTITION p1 VALUES LESS THAN (200) ENGINE = ENGINE,
PARTITION p2 VALUES LESS THAN (300) ENGINE = ENGINE, PARTITION p2 VALUES LESS THAN (300) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN (400) ENGINE = ENGINE, PARTITION p3 VALUES LESS THAN (400) ENGINE = ENGINE,
PARTITION p4 VALUES LESS THAN (500) ENGINE = ENGINE, PARTITION p4 VALUES LESS THAN (500) ENGINE = ENGINE,
PARTITION p5 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p5 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -24,13 +24,13 @@ t1 CREATE TABLE `t1` ( ...@@ -24,13 +24,13 @@ t1 CREATE TABLE `t1` (
`c2` char(10) DEFAULT NULL, `c2` char(10) DEFAULT NULL,
PRIMARY KEY (`c1`) PRIMARY KEY (`c1`)
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (c1) PARTITION BY RANGE (c1)
(PARTITION p0 VALUES LESS THAN (100) ENGINE = ENGINE, (PARTITION p0 VALUES LESS THAN (100) ENGINE = ENGINE,
PARTITION p1 VALUES LESS THAN (200) ENGINE = ENGINE, PARTITION p1 VALUES LESS THAN (200) ENGINE = ENGINE,
PARTITION p2 VALUES LESS THAN (300) ENGINE = ENGINE, PARTITION p2 VALUES LESS THAN (300) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN (400) ENGINE = ENGINE, PARTITION p3 VALUES LESS THAN (400) ENGINE = ENGINE,
PARTITION p4 VALUES LESS THAN (500) ENGINE = ENGINE, PARTITION p4 VALUES LESS THAN (500) ENGINE = ENGINE,
PARTITION p5 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p5 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
ALTER TABLE t1 REBUILD PARTITION p1,p2; ALTER TABLE t1 REBUILD PARTITION p1,p2;
SELECT * FROM t1 ORDER BY c1; SELECT * FROM t1 ORDER BY c1;
c1 c2 c1 c2
...@@ -46,13 +46,13 @@ t1 CREATE TABLE `t1` ( ...@@ -46,13 +46,13 @@ t1 CREATE TABLE `t1` (
`c2` char(10) DEFAULT NULL, `c2` char(10) DEFAULT NULL,
PRIMARY KEY (`c1`) PRIMARY KEY (`c1`)
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (c1) PARTITION BY RANGE (c1)
(PARTITION p0 VALUES LESS THAN (100) ENGINE = ENGINE, (PARTITION p0 VALUES LESS THAN (100) ENGINE = ENGINE,
PARTITION p1 VALUES LESS THAN (200) ENGINE = ENGINE, PARTITION p1 VALUES LESS THAN (200) ENGINE = ENGINE,
PARTITION p2 VALUES LESS THAN (300) ENGINE = ENGINE, PARTITION p2 VALUES LESS THAN (300) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN (400) ENGINE = ENGINE, PARTITION p3 VALUES LESS THAN (400) ENGINE = ENGINE,
PARTITION p4 VALUES LESS THAN (500) ENGINE = ENGINE, PARTITION p4 VALUES LESS THAN (500) ENGINE = ENGINE,
PARTITION p5 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p5 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -21,7 +21,7 @@ t1 CREATE TABLE `t1` ( ...@@ -21,7 +21,7 @@ t1 CREATE TABLE `t1` (
`c1` tinyint(4) DEFAULT NULL, `c1` tinyint(4) DEFAULT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (c1) */ PARTITION BY HASH (c1)
ALTER TABLE t1 REMOVE PARTITIONING; ALTER TABLE t1 REMOVE PARTITIONING;
SELECT * FROM t1 ORDER BY c1; SELECT * FROM t1 ORDER BY c1;
c1 c2 c1 c2
...@@ -60,7 +60,7 @@ t1 CREATE TABLE `t1` ( ...@@ -60,7 +60,7 @@ t1 CREATE TABLE `t1` (
`c1` smallint(6) DEFAULT NULL, `c1` smallint(6) DEFAULT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (c1) */ PARTITION BY HASH (c1)
ALTER TABLE t1 REMOVE PARTITIONING; ALTER TABLE t1 REMOVE PARTITIONING;
SELECT * FROM t1 ORDER BY c1; SELECT * FROM t1 ORDER BY c1;
c1 c2 c1 c2
...@@ -99,7 +99,7 @@ t1 CREATE TABLE `t1` ( ...@@ -99,7 +99,7 @@ t1 CREATE TABLE `t1` (
`c1` mediumint(9) DEFAULT NULL, `c1` mediumint(9) DEFAULT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (c1) */ PARTITION BY HASH (c1)
ALTER TABLE t1 REMOVE PARTITIONING; ALTER TABLE t1 REMOVE PARTITIONING;
SELECT * FROM t1 ORDER BY c1; SELECT * FROM t1 ORDER BY c1;
c1 c2 c1 c2
...@@ -138,7 +138,7 @@ t1 CREATE TABLE `t1` ( ...@@ -138,7 +138,7 @@ t1 CREATE TABLE `t1` (
`c1` int(11) DEFAULT NULL, `c1` int(11) DEFAULT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (c1) */ PARTITION BY HASH (c1)
ALTER TABLE t1 REMOVE PARTITIONING; ALTER TABLE t1 REMOVE PARTITIONING;
SELECT * FROM t1 ORDER BY c1; SELECT * FROM t1 ORDER BY c1;
c1 c2 c1 c2
...@@ -177,7 +177,7 @@ t1 CREATE TABLE `t1` ( ...@@ -177,7 +177,7 @@ t1 CREATE TABLE `t1` (
`c1` int(11) DEFAULT NULL, `c1` int(11) DEFAULT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (c1) */ PARTITION BY HASH (c1)
ALTER TABLE t1 REMOVE PARTITIONING; ALTER TABLE t1 REMOVE PARTITIONING;
SELECT * FROM t1 ORDER BY c1; SELECT * FROM t1 ORDER BY c1;
c1 c2 c1 c2
...@@ -216,7 +216,7 @@ t1 CREATE TABLE `t1` ( ...@@ -216,7 +216,7 @@ t1 CREATE TABLE `t1` (
`c1` bigint(20) DEFAULT NULL, `c1` bigint(20) DEFAULT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (c1) */ PARTITION BY HASH (c1)
ALTER TABLE t1 REMOVE PARTITIONING; ALTER TABLE t1 REMOVE PARTITIONING;
SELECT * FROM t1 ORDER BY c1; SELECT * FROM t1 ORDER BY c1;
c1 c2 c1 c2
...@@ -259,7 +259,7 @@ t1 CREATE TABLE `t1` ( ...@@ -259,7 +259,7 @@ t1 CREATE TABLE `t1` (
`c1` tinyint(4) NOT NULL, `c1` tinyint(4) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (c1) */ PARTITION BY HASH (c1)
ALTER TABLE t1 REMOVE PARTITIONING; ALTER TABLE t1 REMOVE PARTITIONING;
SELECT * FROM t1 ORDER BY c1; SELECT * FROM t1 ORDER BY c1;
c1 c2 c1 c2
...@@ -298,7 +298,7 @@ t1 CREATE TABLE `t1` ( ...@@ -298,7 +298,7 @@ t1 CREATE TABLE `t1` (
`c1` smallint(6) NOT NULL, `c1` smallint(6) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (c1) */ PARTITION BY HASH (c1)
ALTER TABLE t1 REMOVE PARTITIONING; ALTER TABLE t1 REMOVE PARTITIONING;
SELECT * FROM t1 ORDER BY c1; SELECT * FROM t1 ORDER BY c1;
c1 c2 c1 c2
...@@ -337,7 +337,7 @@ t1 CREATE TABLE `t1` ( ...@@ -337,7 +337,7 @@ t1 CREATE TABLE `t1` (
`c1` mediumint(9) NOT NULL, `c1` mediumint(9) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (c1) */ PARTITION BY HASH (c1)
ALTER TABLE t1 REMOVE PARTITIONING; ALTER TABLE t1 REMOVE PARTITIONING;
SELECT * FROM t1 ORDER BY c1; SELECT * FROM t1 ORDER BY c1;
c1 c2 c1 c2
...@@ -376,7 +376,7 @@ t1 CREATE TABLE `t1` ( ...@@ -376,7 +376,7 @@ t1 CREATE TABLE `t1` (
`c1` int(11) NOT NULL, `c1` int(11) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (c1) */ PARTITION BY HASH (c1)
ALTER TABLE t1 REMOVE PARTITIONING; ALTER TABLE t1 REMOVE PARTITIONING;
SELECT * FROM t1 ORDER BY c1; SELECT * FROM t1 ORDER BY c1;
c1 c2 c1 c2
...@@ -415,7 +415,7 @@ t1 CREATE TABLE `t1` ( ...@@ -415,7 +415,7 @@ t1 CREATE TABLE `t1` (
`c1` int(11) NOT NULL, `c1` int(11) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (c1) */ PARTITION BY HASH (c1)
ALTER TABLE t1 REMOVE PARTITIONING; ALTER TABLE t1 REMOVE PARTITIONING;
SELECT * FROM t1 ORDER BY c1; SELECT * FROM t1 ORDER BY c1;
c1 c2 c1 c2
...@@ -454,7 +454,7 @@ t1 CREATE TABLE `t1` ( ...@@ -454,7 +454,7 @@ t1 CREATE TABLE `t1` (
`c1` bigint(20) NOT NULL, `c1` bigint(20) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (c1) */ PARTITION BY HASH (c1)
ALTER TABLE t1 REMOVE PARTITIONING; ALTER TABLE t1 REMOVE PARTITIONING;
SELECT * FROM t1 ORDER BY c1; SELECT * FROM t1 ORDER BY c1;
c1 c2 c1 c2
......
...@@ -44,12 +44,12 @@ t1 CREATE TABLE `t1` ( ...@@ -44,12 +44,12 @@ t1 CREATE TABLE `t1` (
`c1` tinyint(4) NOT NULL, `c1` tinyint(4) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( c1) PARTITION BY RANGE ( c1)
(PARTITION s0 VALUES LESS THAN (3) ENGINE = ENGINE, (PARTITION s0 VALUES LESS THAN (3) ENGINE = ENGINE,
PARTITION s1 VALUES LESS THAN (10) ENGINE = ENGINE, PARTITION s1 VALUES LESS THAN (10) ENGINE = ENGINE,
PARTITION p1 VALUES LESS THAN (20) ENGINE = ENGINE, PARTITION p1 VALUES LESS THAN (20) ENGINE = ENGINE,
PARTITION p2 VALUES LESS THAN (30) ENGINE = ENGINE, PARTITION p2 VALUES LESS THAN (30) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
ALTER TABLE t1 DROP PARTITION s2; ALTER TABLE t1 DROP PARTITION s2;
ERROR HY000: Error in list of partitions to DROP ERROR HY000: Error in list of partitions to DROP
ALTER TABLE t1 DROP PARTITION s1; ALTER TABLE t1 DROP PARTITION s1;
...@@ -71,11 +71,11 @@ t1 CREATE TABLE `t1` ( ...@@ -71,11 +71,11 @@ t1 CREATE TABLE `t1` (
`c1` tinyint(4) NOT NULL, `c1` tinyint(4) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( c1) PARTITION BY RANGE ( c1)
(PARTITION s0 VALUES LESS THAN (3) ENGINE = ENGINE, (PARTITION s0 VALUES LESS THAN (3) ENGINE = ENGINE,
PARTITION p1 VALUES LESS THAN (20) ENGINE = ENGINE, PARTITION p1 VALUES LESS THAN (20) ENGINE = ENGINE,
PARTITION p2 VALUES LESS THAN (30) ENGINE = ENGINE, PARTITION p2 VALUES LESS THAN (30) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -125,12 +125,12 @@ t1 CREATE TABLE `t1` ( ...@@ -125,12 +125,12 @@ t1 CREATE TABLE `t1` (
`c1` smallint(6) NOT NULL, `c1` smallint(6) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( c1) PARTITION BY RANGE ( c1)
(PARTITION s0 VALUES LESS THAN (3) ENGINE = ENGINE, (PARTITION s0 VALUES LESS THAN (3) ENGINE = ENGINE,
PARTITION s1 VALUES LESS THAN (10) ENGINE = ENGINE, PARTITION s1 VALUES LESS THAN (10) ENGINE = ENGINE,
PARTITION p1 VALUES LESS THAN (20) ENGINE = ENGINE, PARTITION p1 VALUES LESS THAN (20) ENGINE = ENGINE,
PARTITION p2 VALUES LESS THAN (30) ENGINE = ENGINE, PARTITION p2 VALUES LESS THAN (30) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
ALTER TABLE t1 DROP PARTITION s2; ALTER TABLE t1 DROP PARTITION s2;
ERROR HY000: Error in list of partitions to DROP ERROR HY000: Error in list of partitions to DROP
ALTER TABLE t1 DROP PARTITION s1; ALTER TABLE t1 DROP PARTITION s1;
...@@ -152,11 +152,11 @@ t1 CREATE TABLE `t1` ( ...@@ -152,11 +152,11 @@ t1 CREATE TABLE `t1` (
`c1` smallint(6) NOT NULL, `c1` smallint(6) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( c1) PARTITION BY RANGE ( c1)
(PARTITION s0 VALUES LESS THAN (3) ENGINE = ENGINE, (PARTITION s0 VALUES LESS THAN (3) ENGINE = ENGINE,
PARTITION p1 VALUES LESS THAN (20) ENGINE = ENGINE, PARTITION p1 VALUES LESS THAN (20) ENGINE = ENGINE,
PARTITION p2 VALUES LESS THAN (30) ENGINE = ENGINE, PARTITION p2 VALUES LESS THAN (30) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -206,12 +206,12 @@ t1 CREATE TABLE `t1` ( ...@@ -206,12 +206,12 @@ t1 CREATE TABLE `t1` (
`c1` mediumint(9) NOT NULL, `c1` mediumint(9) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( c1) PARTITION BY RANGE ( c1)
(PARTITION s0 VALUES LESS THAN (3) ENGINE = ENGINE, (PARTITION s0 VALUES LESS THAN (3) ENGINE = ENGINE,
PARTITION s1 VALUES LESS THAN (10) ENGINE = ENGINE, PARTITION s1 VALUES LESS THAN (10) ENGINE = ENGINE,
PARTITION p1 VALUES LESS THAN (20) ENGINE = ENGINE, PARTITION p1 VALUES LESS THAN (20) ENGINE = ENGINE,
PARTITION p2 VALUES LESS THAN (30) ENGINE = ENGINE, PARTITION p2 VALUES LESS THAN (30) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
ALTER TABLE t1 DROP PARTITION s2; ALTER TABLE t1 DROP PARTITION s2;
ERROR HY000: Error in list of partitions to DROP ERROR HY000: Error in list of partitions to DROP
ALTER TABLE t1 DROP PARTITION s1; ALTER TABLE t1 DROP PARTITION s1;
...@@ -233,11 +233,11 @@ t1 CREATE TABLE `t1` ( ...@@ -233,11 +233,11 @@ t1 CREATE TABLE `t1` (
`c1` mediumint(9) NOT NULL, `c1` mediumint(9) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( c1) PARTITION BY RANGE ( c1)
(PARTITION s0 VALUES LESS THAN (3) ENGINE = ENGINE, (PARTITION s0 VALUES LESS THAN (3) ENGINE = ENGINE,
PARTITION p1 VALUES LESS THAN (20) ENGINE = ENGINE, PARTITION p1 VALUES LESS THAN (20) ENGINE = ENGINE,
PARTITION p2 VALUES LESS THAN (30) ENGINE = ENGINE, PARTITION p2 VALUES LESS THAN (30) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -287,12 +287,12 @@ t1 CREATE TABLE `t1` ( ...@@ -287,12 +287,12 @@ t1 CREATE TABLE `t1` (
`c1` int(11) NOT NULL, `c1` int(11) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( c1) PARTITION BY RANGE ( c1)
(PARTITION s0 VALUES LESS THAN (3) ENGINE = ENGINE, (PARTITION s0 VALUES LESS THAN (3) ENGINE = ENGINE,
PARTITION s1 VALUES LESS THAN (10) ENGINE = ENGINE, PARTITION s1 VALUES LESS THAN (10) ENGINE = ENGINE,
PARTITION p1 VALUES LESS THAN (20) ENGINE = ENGINE, PARTITION p1 VALUES LESS THAN (20) ENGINE = ENGINE,
PARTITION p2 VALUES LESS THAN (30) ENGINE = ENGINE, PARTITION p2 VALUES LESS THAN (30) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
ALTER TABLE t1 DROP PARTITION s2; ALTER TABLE t1 DROP PARTITION s2;
ERROR HY000: Error in list of partitions to DROP ERROR HY000: Error in list of partitions to DROP
ALTER TABLE t1 DROP PARTITION s1; ALTER TABLE t1 DROP PARTITION s1;
...@@ -314,11 +314,11 @@ t1 CREATE TABLE `t1` ( ...@@ -314,11 +314,11 @@ t1 CREATE TABLE `t1` (
`c1` int(11) NOT NULL, `c1` int(11) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( c1) PARTITION BY RANGE ( c1)
(PARTITION s0 VALUES LESS THAN (3) ENGINE = ENGINE, (PARTITION s0 VALUES LESS THAN (3) ENGINE = ENGINE,
PARTITION p1 VALUES LESS THAN (20) ENGINE = ENGINE, PARTITION p1 VALUES LESS THAN (20) ENGINE = ENGINE,
PARTITION p2 VALUES LESS THAN (30) ENGINE = ENGINE, PARTITION p2 VALUES LESS THAN (30) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -368,12 +368,12 @@ t1 CREATE TABLE `t1` ( ...@@ -368,12 +368,12 @@ t1 CREATE TABLE `t1` (
`c1` int(11) NOT NULL, `c1` int(11) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( c1) PARTITION BY RANGE ( c1)
(PARTITION s0 VALUES LESS THAN (3) ENGINE = ENGINE, (PARTITION s0 VALUES LESS THAN (3) ENGINE = ENGINE,
PARTITION s1 VALUES LESS THAN (10) ENGINE = ENGINE, PARTITION s1 VALUES LESS THAN (10) ENGINE = ENGINE,
PARTITION p1 VALUES LESS THAN (20) ENGINE = ENGINE, PARTITION p1 VALUES LESS THAN (20) ENGINE = ENGINE,
PARTITION p2 VALUES LESS THAN (30) ENGINE = ENGINE, PARTITION p2 VALUES LESS THAN (30) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
ALTER TABLE t1 DROP PARTITION s2; ALTER TABLE t1 DROP PARTITION s2;
ERROR HY000: Error in list of partitions to DROP ERROR HY000: Error in list of partitions to DROP
ALTER TABLE t1 DROP PARTITION s1; ALTER TABLE t1 DROP PARTITION s1;
...@@ -395,11 +395,11 @@ t1 CREATE TABLE `t1` ( ...@@ -395,11 +395,11 @@ t1 CREATE TABLE `t1` (
`c1` int(11) NOT NULL, `c1` int(11) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( c1) PARTITION BY RANGE ( c1)
(PARTITION s0 VALUES LESS THAN (3) ENGINE = ENGINE, (PARTITION s0 VALUES LESS THAN (3) ENGINE = ENGINE,
PARTITION p1 VALUES LESS THAN (20) ENGINE = ENGINE, PARTITION p1 VALUES LESS THAN (20) ENGINE = ENGINE,
PARTITION p2 VALUES LESS THAN (30) ENGINE = ENGINE, PARTITION p2 VALUES LESS THAN (30) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -449,12 +449,12 @@ t1 CREATE TABLE `t1` ( ...@@ -449,12 +449,12 @@ t1 CREATE TABLE `t1` (
`c1` bigint(20) NOT NULL, `c1` bigint(20) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( c1) PARTITION BY RANGE ( c1)
(PARTITION s0 VALUES LESS THAN (3) ENGINE = ENGINE, (PARTITION s0 VALUES LESS THAN (3) ENGINE = ENGINE,
PARTITION s1 VALUES LESS THAN (10) ENGINE = ENGINE, PARTITION s1 VALUES LESS THAN (10) ENGINE = ENGINE,
PARTITION p1 VALUES LESS THAN (20) ENGINE = ENGINE, PARTITION p1 VALUES LESS THAN (20) ENGINE = ENGINE,
PARTITION p2 VALUES LESS THAN (30) ENGINE = ENGINE, PARTITION p2 VALUES LESS THAN (30) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
ALTER TABLE t1 DROP PARTITION s2; ALTER TABLE t1 DROP PARTITION s2;
ERROR HY000: Error in list of partitions to DROP ERROR HY000: Error in list of partitions to DROP
ALTER TABLE t1 DROP PARTITION s1; ALTER TABLE t1 DROP PARTITION s1;
...@@ -476,11 +476,11 @@ t1 CREATE TABLE `t1` ( ...@@ -476,11 +476,11 @@ t1 CREATE TABLE `t1` (
`c1` bigint(20) NOT NULL, `c1` bigint(20) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( c1) PARTITION BY RANGE ( c1)
(PARTITION s0 VALUES LESS THAN (3) ENGINE = ENGINE, (PARTITION s0 VALUES LESS THAN (3) ENGINE = ENGINE,
PARTITION p1 VALUES LESS THAN (20) ENGINE = ENGINE, PARTITION p1 VALUES LESS THAN (20) ENGINE = ENGINE,
PARTITION p2 VALUES LESS THAN (30) ENGINE = ENGINE, PARTITION p2 VALUES LESS THAN (30) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -41,10 +41,10 @@ t1 CREATE TABLE `t1` ( ...@@ -41,10 +41,10 @@ t1 CREATE TABLE `t1` (
`c1` tinyint(4) NOT NULL, `c1` tinyint(4) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( c1) PARTITION BY RANGE ( c1)
(PARTITION p0 VALUES LESS THAN (10) ENGINE = ENGINE, (PARTITION p0 VALUES LESS THAN (10) ENGINE = ENGINE,
PARTITION m0 VALUES LESS THAN (30) ENGINE = ENGINE, PARTITION m0 VALUES LESS THAN (30) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
ALTER TABLE t1 DROP PARTITION m1; ALTER TABLE t1 DROP PARTITION m1;
ERROR HY000: Error in list of partitions to DROP ERROR HY000: Error in list of partitions to DROP
ALTER TABLE t1 DROP PARTITION m0; ALTER TABLE t1 DROP PARTITION m0;
...@@ -63,9 +63,9 @@ t1 CREATE TABLE `t1` ( ...@@ -63,9 +63,9 @@ t1 CREATE TABLE `t1` (
`c1` tinyint(4) NOT NULL, `c1` tinyint(4) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( c1) PARTITION BY RANGE ( c1)
(PARTITION p0 VALUES LESS THAN (10) ENGINE = ENGINE, (PARTITION p0 VALUES LESS THAN (10) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -112,10 +112,10 @@ t1 CREATE TABLE `t1` ( ...@@ -112,10 +112,10 @@ t1 CREATE TABLE `t1` (
`c1` smallint(6) NOT NULL, `c1` smallint(6) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( c1) PARTITION BY RANGE ( c1)
(PARTITION p0 VALUES LESS THAN (10) ENGINE = ENGINE, (PARTITION p0 VALUES LESS THAN (10) ENGINE = ENGINE,
PARTITION m0 VALUES LESS THAN (30) ENGINE = ENGINE, PARTITION m0 VALUES LESS THAN (30) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
ALTER TABLE t1 DROP PARTITION m1; ALTER TABLE t1 DROP PARTITION m1;
ERROR HY000: Error in list of partitions to DROP ERROR HY000: Error in list of partitions to DROP
ALTER TABLE t1 DROP PARTITION m0; ALTER TABLE t1 DROP PARTITION m0;
...@@ -134,9 +134,9 @@ t1 CREATE TABLE `t1` ( ...@@ -134,9 +134,9 @@ t1 CREATE TABLE `t1` (
`c1` smallint(6) NOT NULL, `c1` smallint(6) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( c1) PARTITION BY RANGE ( c1)
(PARTITION p0 VALUES LESS THAN (10) ENGINE = ENGINE, (PARTITION p0 VALUES LESS THAN (10) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -183,10 +183,10 @@ t1 CREATE TABLE `t1` ( ...@@ -183,10 +183,10 @@ t1 CREATE TABLE `t1` (
`c1` mediumint(9) NOT NULL, `c1` mediumint(9) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( c1) PARTITION BY RANGE ( c1)
(PARTITION p0 VALUES LESS THAN (10) ENGINE = ENGINE, (PARTITION p0 VALUES LESS THAN (10) ENGINE = ENGINE,
PARTITION m0 VALUES LESS THAN (30) ENGINE = ENGINE, PARTITION m0 VALUES LESS THAN (30) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
ALTER TABLE t1 DROP PARTITION m1; ALTER TABLE t1 DROP PARTITION m1;
ERROR HY000: Error in list of partitions to DROP ERROR HY000: Error in list of partitions to DROP
ALTER TABLE t1 DROP PARTITION m0; ALTER TABLE t1 DROP PARTITION m0;
...@@ -205,9 +205,9 @@ t1 CREATE TABLE `t1` ( ...@@ -205,9 +205,9 @@ t1 CREATE TABLE `t1` (
`c1` mediumint(9) NOT NULL, `c1` mediumint(9) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( c1) PARTITION BY RANGE ( c1)
(PARTITION p0 VALUES LESS THAN (10) ENGINE = ENGINE, (PARTITION p0 VALUES LESS THAN (10) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -254,10 +254,10 @@ t1 CREATE TABLE `t1` ( ...@@ -254,10 +254,10 @@ t1 CREATE TABLE `t1` (
`c1` int(11) NOT NULL, `c1` int(11) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( c1) PARTITION BY RANGE ( c1)
(PARTITION p0 VALUES LESS THAN (10) ENGINE = ENGINE, (PARTITION p0 VALUES LESS THAN (10) ENGINE = ENGINE,
PARTITION m0 VALUES LESS THAN (30) ENGINE = ENGINE, PARTITION m0 VALUES LESS THAN (30) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
ALTER TABLE t1 DROP PARTITION m1; ALTER TABLE t1 DROP PARTITION m1;
ERROR HY000: Error in list of partitions to DROP ERROR HY000: Error in list of partitions to DROP
ALTER TABLE t1 DROP PARTITION m0; ALTER TABLE t1 DROP PARTITION m0;
...@@ -276,9 +276,9 @@ t1 CREATE TABLE `t1` ( ...@@ -276,9 +276,9 @@ t1 CREATE TABLE `t1` (
`c1` int(11) NOT NULL, `c1` int(11) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( c1) PARTITION BY RANGE ( c1)
(PARTITION p0 VALUES LESS THAN (10) ENGINE = ENGINE, (PARTITION p0 VALUES LESS THAN (10) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -325,10 +325,10 @@ t1 CREATE TABLE `t1` ( ...@@ -325,10 +325,10 @@ t1 CREATE TABLE `t1` (
`c1` int(11) NOT NULL, `c1` int(11) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( c1) PARTITION BY RANGE ( c1)
(PARTITION p0 VALUES LESS THAN (10) ENGINE = ENGINE, (PARTITION p0 VALUES LESS THAN (10) ENGINE = ENGINE,
PARTITION m0 VALUES LESS THAN (30) ENGINE = ENGINE, PARTITION m0 VALUES LESS THAN (30) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
ALTER TABLE t1 DROP PARTITION m1; ALTER TABLE t1 DROP PARTITION m1;
ERROR HY000: Error in list of partitions to DROP ERROR HY000: Error in list of partitions to DROP
ALTER TABLE t1 DROP PARTITION m0; ALTER TABLE t1 DROP PARTITION m0;
...@@ -347,9 +347,9 @@ t1 CREATE TABLE `t1` ( ...@@ -347,9 +347,9 @@ t1 CREATE TABLE `t1` (
`c1` int(11) NOT NULL, `c1` int(11) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( c1) PARTITION BY RANGE ( c1)
(PARTITION p0 VALUES LESS THAN (10) ENGINE = ENGINE, (PARTITION p0 VALUES LESS THAN (10) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -396,10 +396,10 @@ t1 CREATE TABLE `t1` ( ...@@ -396,10 +396,10 @@ t1 CREATE TABLE `t1` (
`c1` bigint(20) NOT NULL, `c1` bigint(20) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( c1) PARTITION BY RANGE ( c1)
(PARTITION p0 VALUES LESS THAN (10) ENGINE = ENGINE, (PARTITION p0 VALUES LESS THAN (10) ENGINE = ENGINE,
PARTITION m0 VALUES LESS THAN (30) ENGINE = ENGINE, PARTITION m0 VALUES LESS THAN (30) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
ALTER TABLE t1 DROP PARTITION m1; ALTER TABLE t1 DROP PARTITION m1;
ERROR HY000: Error in list of partitions to DROP ERROR HY000: Error in list of partitions to DROP
ALTER TABLE t1 DROP PARTITION m0; ALTER TABLE t1 DROP PARTITION m0;
...@@ -418,9 +418,9 @@ t1 CREATE TABLE `t1` ( ...@@ -418,9 +418,9 @@ t1 CREATE TABLE `t1` (
`c1` bigint(20) NOT NULL, `c1` bigint(20) NOT NULL,
`c2` char(5) DEFAULT NULL `c2` char(5) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( c1) PARTITION BY RANGE ( c1)
(PARTITION p0 VALUES LESS THAN (10) ENGINE = ENGINE, (PARTITION p0 VALUES LESS THAN (10) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p3 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -24,13 +24,13 @@ t1 CREATE TABLE `t1` ( ...@@ -24,13 +24,13 @@ t1 CREATE TABLE `t1` (
`c2` char(10) DEFAULT NULL, `c2` char(10) DEFAULT NULL,
PRIMARY KEY (`c1`) PRIMARY KEY (`c1`)
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (c1) PARTITION BY RANGE (c1)
(PARTITION p0 VALUES LESS THAN (100) ENGINE = ENGINE, (PARTITION p0 VALUES LESS THAN (100) ENGINE = ENGINE,
PARTITION p1 VALUES LESS THAN (200) ENGINE = ENGINE, PARTITION p1 VALUES LESS THAN (200) ENGINE = ENGINE,
PARTITION p2 VALUES LESS THAN (300) ENGINE = ENGINE, PARTITION p2 VALUES LESS THAN (300) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN (400) ENGINE = ENGINE, PARTITION p3 VALUES LESS THAN (400) ENGINE = ENGINE,
PARTITION p4 VALUES LESS THAN (500) ENGINE = ENGINE, PARTITION p4 VALUES LESS THAN (500) ENGINE = ENGINE,
PARTITION p5 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p5 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
ALTER TABLE t1 REPAIR PARTITION p1,p2; ALTER TABLE t1 REPAIR PARTITION p1,p2;
SELECT * FROM t1 ORDER BY c1; SELECT * FROM t1 ORDER BY c1;
c1 c2 c1 c2
...@@ -46,13 +46,13 @@ t1 CREATE TABLE `t1` ( ...@@ -46,13 +46,13 @@ t1 CREATE TABLE `t1` (
`c2` char(10) DEFAULT NULL, `c2` char(10) DEFAULT NULL,
PRIMARY KEY (`c1`) PRIMARY KEY (`c1`)
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (c1) PARTITION BY RANGE (c1)
(PARTITION p0 VALUES LESS THAN (100) ENGINE = ENGINE, (PARTITION p0 VALUES LESS THAN (100) ENGINE = ENGINE,
PARTITION p1 VALUES LESS THAN (200) ENGINE = ENGINE, PARTITION p1 VALUES LESS THAN (200) ENGINE = ENGINE,
PARTITION p2 VALUES LESS THAN (300) ENGINE = ENGINE, PARTITION p2 VALUES LESS THAN (300) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN (400) ENGINE = ENGINE, PARTITION p3 VALUES LESS THAN (400) ENGINE = ENGINE,
PARTITION p4 VALUES LESS THAN (500) ENGINE = ENGINE, PARTITION p4 VALUES LESS THAN (500) ENGINE = ENGINE,
PARTITION p5 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p5 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -45,12 +45,12 @@ t1 CREATE TABLE `t1` ( ...@@ -45,12 +45,12 @@ t1 CREATE TABLE `t1` (
`name` varchar(30) DEFAULT NULL, `name` varchar(30) DEFAULT NULL,
`purchased` date DEFAULT NULL `purchased` date DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( YEAR(purchased)) PARTITION BY RANGE ( YEAR(purchased))
SUBPARTITION BY HASH ( TO_DAYS(purchased)) SUBPARTITION BY HASH ( TO_DAYS(purchased))
SUBPARTITIONS 2 SUBPARTITIONS 2
(PARTITION p0 VALUES LESS THAN (1990) ENGINE = ENGINE, (PARTITION p0 VALUES LESS THAN (1990) ENGINE = ENGINE,
PARTITION p1 VALUES LESS THAN (2000) ENGINE = ENGINE, PARTITION p1 VALUES LESS THAN (2000) ENGINE = ENGINE,
PARTITION p2 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p2 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -100,12 +100,12 @@ t1 CREATE TABLE `t1` ( ...@@ -100,12 +100,12 @@ t1 CREATE TABLE `t1` (
`name` varchar(30) DEFAULT NULL, `name` varchar(30) DEFAULT NULL,
`purchased` date DEFAULT NULL `purchased` date DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( YEAR(purchased)) PARTITION BY RANGE ( YEAR(purchased))
SUBPARTITION BY HASH ( TO_DAYS(purchased)) SUBPARTITION BY HASH ( TO_DAYS(purchased))
SUBPARTITIONS 2 SUBPARTITIONS 2
(PARTITION p0 VALUES LESS THAN (1990) ENGINE = ENGINE, (PARTITION p0 VALUES LESS THAN (1990) ENGINE = ENGINE,
PARTITION p1 VALUES LESS THAN (2000) ENGINE = ENGINE, PARTITION p1 VALUES LESS THAN (2000) ENGINE = ENGINE,
PARTITION p2 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p2 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -155,12 +155,12 @@ t1 CREATE TABLE `t1` ( ...@@ -155,12 +155,12 @@ t1 CREATE TABLE `t1` (
`name` varchar(30) DEFAULT NULL, `name` varchar(30) DEFAULT NULL,
`purchased` date DEFAULT NULL `purchased` date DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( YEAR(purchased)) PARTITION BY RANGE ( YEAR(purchased))
SUBPARTITION BY HASH ( TO_DAYS(purchased)) SUBPARTITION BY HASH ( TO_DAYS(purchased))
SUBPARTITIONS 2 SUBPARTITIONS 2
(PARTITION p0 VALUES LESS THAN (1990) ENGINE = ENGINE, (PARTITION p0 VALUES LESS THAN (1990) ENGINE = ENGINE,
PARTITION p1 VALUES LESS THAN (2000) ENGINE = ENGINE, PARTITION p1 VALUES LESS THAN (2000) ENGINE = ENGINE,
PARTITION p2 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p2 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -210,12 +210,12 @@ t1 CREATE TABLE `t1` ( ...@@ -210,12 +210,12 @@ t1 CREATE TABLE `t1` (
`name` varchar(30) DEFAULT NULL, `name` varchar(30) DEFAULT NULL,
`purchased` date DEFAULT NULL `purchased` date DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( YEAR(purchased)) PARTITION BY RANGE ( YEAR(purchased))
SUBPARTITION BY HASH ( TO_DAYS(purchased)) SUBPARTITION BY HASH ( TO_DAYS(purchased))
SUBPARTITIONS 2 SUBPARTITIONS 2
(PARTITION p0 VALUES LESS THAN (1990) ENGINE = ENGINE, (PARTITION p0 VALUES LESS THAN (1990) ENGINE = ENGINE,
PARTITION p1 VALUES LESS THAN (2000) ENGINE = ENGINE, PARTITION p1 VALUES LESS THAN (2000) ENGINE = ENGINE,
PARTITION p2 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p2 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -265,12 +265,12 @@ t1 CREATE TABLE `t1` ( ...@@ -265,12 +265,12 @@ t1 CREATE TABLE `t1` (
`name` varchar(30) DEFAULT NULL, `name` varchar(30) DEFAULT NULL,
`purchased` date DEFAULT NULL `purchased` date DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( YEAR(purchased)) PARTITION BY RANGE ( YEAR(purchased))
SUBPARTITION BY HASH ( TO_DAYS(purchased)) SUBPARTITION BY HASH ( TO_DAYS(purchased))
SUBPARTITIONS 2 SUBPARTITIONS 2
(PARTITION p0 VALUES LESS THAN (1990) ENGINE = ENGINE, (PARTITION p0 VALUES LESS THAN (1990) ENGINE = ENGINE,
PARTITION p1 VALUES LESS THAN (2000) ENGINE = ENGINE, PARTITION p1 VALUES LESS THAN (2000) ENGINE = ENGINE,
PARTITION p2 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p2 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -320,12 +320,12 @@ t1 CREATE TABLE `t1` ( ...@@ -320,12 +320,12 @@ t1 CREATE TABLE `t1` (
`name` varchar(30) DEFAULT NULL, `name` varchar(30) DEFAULT NULL,
`purchased` date DEFAULT NULL `purchased` date DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( YEAR(purchased)) PARTITION BY RANGE ( YEAR(purchased))
SUBPARTITION BY HASH ( TO_DAYS(purchased)) SUBPARTITION BY HASH ( TO_DAYS(purchased))
SUBPARTITIONS 2 SUBPARTITIONS 2
(PARTITION p0 VALUES LESS THAN (1990) ENGINE = ENGINE, (PARTITION p0 VALUES LESS THAN (1990) ENGINE = ENGINE,
PARTITION p1 VALUES LESS THAN (2000) ENGINE = ENGINE, PARTITION p1 VALUES LESS THAN (2000) ENGINE = ENGINE,
PARTITION p2 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p2 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -53,7 +53,7 @@ t1 CREATE TABLE `t1` ( ...@@ -53,7 +53,7 @@ t1 CREATE TABLE `t1` (
`name` varchar(30) DEFAULT NULL, `name` varchar(30) DEFAULT NULL,
`purchased` date DEFAULT NULL `purchased` date DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( YEAR(purchased)) PARTITION BY RANGE ( YEAR(purchased))
SUBPARTITION BY HASH ( TO_DAYS(purchased)) SUBPARTITION BY HASH ( TO_DAYS(purchased))
(PARTITION p0 VALUES LESS THAN (1990) (PARTITION p0 VALUES LESS THAN (1990)
(SUBPARTITION s0 ENGINE = ENGINE, (SUBPARTITION s0 ENGINE = ENGINE,
...@@ -63,7 +63,7 @@ SUBPARTITION BY HASH ( TO_DAYS(purchased)) ...@@ -63,7 +63,7 @@ SUBPARTITION BY HASH ( TO_DAYS(purchased))
SUBPARTITION s3 ENGINE = ENGINE), SUBPARTITION s3 ENGINE = ENGINE),
PARTITION p2 VALUES LESS THAN MAXVALUE PARTITION p2 VALUES LESS THAN MAXVALUE
(SUBPARTITION s4 ENGINE = ENGINE, (SUBPARTITION s4 ENGINE = ENGINE,
SUBPARTITION s5 ENGINE = ENGINE)) */ SUBPARTITION s5 ENGINE = ENGINE))
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -121,7 +121,7 @@ t1 CREATE TABLE `t1` ( ...@@ -121,7 +121,7 @@ t1 CREATE TABLE `t1` (
`name` varchar(30) DEFAULT NULL, `name` varchar(30) DEFAULT NULL,
`purchased` date DEFAULT NULL `purchased` date DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( YEAR(purchased)) PARTITION BY RANGE ( YEAR(purchased))
SUBPARTITION BY HASH ( TO_DAYS(purchased)) SUBPARTITION BY HASH ( TO_DAYS(purchased))
(PARTITION p0 VALUES LESS THAN (1990) (PARTITION p0 VALUES LESS THAN (1990)
(SUBPARTITION s0 ENGINE = ENGINE, (SUBPARTITION s0 ENGINE = ENGINE,
...@@ -131,7 +131,7 @@ SUBPARTITION BY HASH ( TO_DAYS(purchased)) ...@@ -131,7 +131,7 @@ SUBPARTITION BY HASH ( TO_DAYS(purchased))
SUBPARTITION s3 ENGINE = ENGINE), SUBPARTITION s3 ENGINE = ENGINE),
PARTITION p2 VALUES LESS THAN MAXVALUE PARTITION p2 VALUES LESS THAN MAXVALUE
(SUBPARTITION s4 ENGINE = ENGINE, (SUBPARTITION s4 ENGINE = ENGINE,
SUBPARTITION s5 ENGINE = ENGINE)) */ SUBPARTITION s5 ENGINE = ENGINE))
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -189,7 +189,7 @@ t1 CREATE TABLE `t1` ( ...@@ -189,7 +189,7 @@ t1 CREATE TABLE `t1` (
`name` varchar(30) DEFAULT NULL, `name` varchar(30) DEFAULT NULL,
`purchased` date DEFAULT NULL `purchased` date DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( YEAR(purchased)) PARTITION BY RANGE ( YEAR(purchased))
SUBPARTITION BY HASH ( TO_DAYS(purchased)) SUBPARTITION BY HASH ( TO_DAYS(purchased))
(PARTITION p0 VALUES LESS THAN (1990) (PARTITION p0 VALUES LESS THAN (1990)
(SUBPARTITION s0 ENGINE = ENGINE, (SUBPARTITION s0 ENGINE = ENGINE,
...@@ -199,7 +199,7 @@ SUBPARTITION BY HASH ( TO_DAYS(purchased)) ...@@ -199,7 +199,7 @@ SUBPARTITION BY HASH ( TO_DAYS(purchased))
SUBPARTITION s3 ENGINE = ENGINE), SUBPARTITION s3 ENGINE = ENGINE),
PARTITION p2 VALUES LESS THAN MAXVALUE PARTITION p2 VALUES LESS THAN MAXVALUE
(SUBPARTITION s4 ENGINE = ENGINE, (SUBPARTITION s4 ENGINE = ENGINE,
SUBPARTITION s5 ENGINE = ENGINE)) */ SUBPARTITION s5 ENGINE = ENGINE))
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -257,7 +257,7 @@ t1 CREATE TABLE `t1` ( ...@@ -257,7 +257,7 @@ t1 CREATE TABLE `t1` (
`name` varchar(30) DEFAULT NULL, `name` varchar(30) DEFAULT NULL,
`purchased` date DEFAULT NULL `purchased` date DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( YEAR(purchased)) PARTITION BY RANGE ( YEAR(purchased))
SUBPARTITION BY HASH ( TO_DAYS(purchased)) SUBPARTITION BY HASH ( TO_DAYS(purchased))
(PARTITION p0 VALUES LESS THAN (1990) (PARTITION p0 VALUES LESS THAN (1990)
(SUBPARTITION s0 ENGINE = ENGINE, (SUBPARTITION s0 ENGINE = ENGINE,
...@@ -267,7 +267,7 @@ SUBPARTITION BY HASH ( TO_DAYS(purchased)) ...@@ -267,7 +267,7 @@ SUBPARTITION BY HASH ( TO_DAYS(purchased))
SUBPARTITION s3 ENGINE = ENGINE), SUBPARTITION s3 ENGINE = ENGINE),
PARTITION p2 VALUES LESS THAN MAXVALUE PARTITION p2 VALUES LESS THAN MAXVALUE
(SUBPARTITION s4 ENGINE = ENGINE, (SUBPARTITION s4 ENGINE = ENGINE,
SUBPARTITION s5 ENGINE = ENGINE)) */ SUBPARTITION s5 ENGINE = ENGINE))
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -325,7 +325,7 @@ t1 CREATE TABLE `t1` ( ...@@ -325,7 +325,7 @@ t1 CREATE TABLE `t1` (
`name` varchar(30) DEFAULT NULL, `name` varchar(30) DEFAULT NULL,
`purchased` date DEFAULT NULL `purchased` date DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( YEAR(purchased)) PARTITION BY RANGE ( YEAR(purchased))
SUBPARTITION BY HASH ( TO_DAYS(purchased)) SUBPARTITION BY HASH ( TO_DAYS(purchased))
(PARTITION p0 VALUES LESS THAN (1990) (PARTITION p0 VALUES LESS THAN (1990)
(SUBPARTITION s0 ENGINE = ENGINE, (SUBPARTITION s0 ENGINE = ENGINE,
...@@ -335,7 +335,7 @@ SUBPARTITION BY HASH ( TO_DAYS(purchased)) ...@@ -335,7 +335,7 @@ SUBPARTITION BY HASH ( TO_DAYS(purchased))
SUBPARTITION s3 ENGINE = ENGINE), SUBPARTITION s3 ENGINE = ENGINE),
PARTITION p2 VALUES LESS THAN MAXVALUE PARTITION p2 VALUES LESS THAN MAXVALUE
(SUBPARTITION s4 ENGINE = ENGINE, (SUBPARTITION s4 ENGINE = ENGINE,
SUBPARTITION s5 ENGINE = ENGINE)) */ SUBPARTITION s5 ENGINE = ENGINE))
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -393,7 +393,7 @@ t1 CREATE TABLE `t1` ( ...@@ -393,7 +393,7 @@ t1 CREATE TABLE `t1` (
`name` varchar(30) DEFAULT NULL, `name` varchar(30) DEFAULT NULL,
`purchased` date DEFAULT NULL `purchased` date DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( YEAR(purchased)) PARTITION BY RANGE ( YEAR(purchased))
SUBPARTITION BY HASH ( TO_DAYS(purchased)) SUBPARTITION BY HASH ( TO_DAYS(purchased))
(PARTITION p0 VALUES LESS THAN (1990) (PARTITION p0 VALUES LESS THAN (1990)
(SUBPARTITION s0 ENGINE = ENGINE, (SUBPARTITION s0 ENGINE = ENGINE,
...@@ -403,7 +403,7 @@ SUBPARTITION BY HASH ( TO_DAYS(purchased)) ...@@ -403,7 +403,7 @@ SUBPARTITION BY HASH ( TO_DAYS(purchased))
SUBPARTITION s3 ENGINE = ENGINE), SUBPARTITION s3 ENGINE = ENGINE),
PARTITION p2 VALUES LESS THAN MAXVALUE PARTITION p2 VALUES LESS THAN MAXVALUE
(SUBPARTITION s4 ENGINE = ENGINE, (SUBPARTITION s4 ENGINE = ENGINE,
SUBPARTITION s5 ENGINE = ENGINE)) */ SUBPARTITION s5 ENGINE = ENGINE))
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -15,13 +15,13 @@ t1 CREATE TABLE `t1` ( ...@@ -15,13 +15,13 @@ t1 CREATE TABLE `t1` (
`c1` smallint(6) DEFAULT NULL, `c1` smallint(6) DEFAULT NULL,
`c2` int(11) DEFAULT NULL `c2` int(11) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (c1) PARTITION BY RANGE (c1)
(PARTITION p0 VALUES LESS THAN (1991) ENGINE = ENGINE, (PARTITION p0 VALUES LESS THAN (1991) ENGINE = ENGINE,
PARTITION p1 VALUES LESS THAN (1995) ENGINE = ENGINE, PARTITION p1 VALUES LESS THAN (1995) ENGINE = ENGINE,
PARTITION p2 VALUES LESS THAN (1999) ENGINE = ENGINE, PARTITION p2 VALUES LESS THAN (1999) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN (2002) ENGINE = ENGINE, PARTITION p3 VALUES LESS THAN (2002) ENGINE = ENGINE,
PARTITION p4 VALUES LESS THAN (2006) ENGINE = ENGINE, PARTITION p4 VALUES LESS THAN (2006) ENGINE = ENGINE,
PARTITION p5 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p5 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -41,13 +41,13 @@ t1 CREATE TABLE `t1` ( ...@@ -41,13 +41,13 @@ t1 CREATE TABLE `t1` (
`c1` mediumint(9) DEFAULT NULL, `c1` mediumint(9) DEFAULT NULL,
`c2` int(11) DEFAULT NULL `c2` int(11) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (c1) PARTITION BY RANGE (c1)
(PARTITION p0 VALUES LESS THAN (1991) ENGINE = ENGINE, (PARTITION p0 VALUES LESS THAN (1991) ENGINE = ENGINE,
PARTITION p1 VALUES LESS THAN (1995) ENGINE = ENGINE, PARTITION p1 VALUES LESS THAN (1995) ENGINE = ENGINE,
PARTITION p2 VALUES LESS THAN (1999) ENGINE = ENGINE, PARTITION p2 VALUES LESS THAN (1999) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN (2002) ENGINE = ENGINE, PARTITION p3 VALUES LESS THAN (2002) ENGINE = ENGINE,
PARTITION p4 VALUES LESS THAN (2006) ENGINE = ENGINE, PARTITION p4 VALUES LESS THAN (2006) ENGINE = ENGINE,
PARTITION p5 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p5 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -67,13 +67,13 @@ t1 CREATE TABLE `t1` ( ...@@ -67,13 +67,13 @@ t1 CREATE TABLE `t1` (
`c1` int(11) DEFAULT NULL, `c1` int(11) DEFAULT NULL,
`c2` int(11) DEFAULT NULL `c2` int(11) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (c1) PARTITION BY RANGE (c1)
(PARTITION p0 VALUES LESS THAN (1991) ENGINE = ENGINE, (PARTITION p0 VALUES LESS THAN (1991) ENGINE = ENGINE,
PARTITION p1 VALUES LESS THAN (1995) ENGINE = ENGINE, PARTITION p1 VALUES LESS THAN (1995) ENGINE = ENGINE,
PARTITION p2 VALUES LESS THAN (1999) ENGINE = ENGINE, PARTITION p2 VALUES LESS THAN (1999) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN (2002) ENGINE = ENGINE, PARTITION p3 VALUES LESS THAN (2002) ENGINE = ENGINE,
PARTITION p4 VALUES LESS THAN (2006) ENGINE = ENGINE, PARTITION p4 VALUES LESS THAN (2006) ENGINE = ENGINE,
PARTITION p5 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p5 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -93,13 +93,13 @@ t1 CREATE TABLE `t1` ( ...@@ -93,13 +93,13 @@ t1 CREATE TABLE `t1` (
`c1` int(11) DEFAULT NULL, `c1` int(11) DEFAULT NULL,
`c2` int(11) DEFAULT NULL `c2` int(11) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (c1) PARTITION BY RANGE (c1)
(PARTITION p0 VALUES LESS THAN (1991) ENGINE = ENGINE, (PARTITION p0 VALUES LESS THAN (1991) ENGINE = ENGINE,
PARTITION p1 VALUES LESS THAN (1995) ENGINE = ENGINE, PARTITION p1 VALUES LESS THAN (1995) ENGINE = ENGINE,
PARTITION p2 VALUES LESS THAN (1999) ENGINE = ENGINE, PARTITION p2 VALUES LESS THAN (1999) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN (2002) ENGINE = ENGINE, PARTITION p3 VALUES LESS THAN (2002) ENGINE = ENGINE,
PARTITION p4 VALUES LESS THAN (2006) ENGINE = ENGINE, PARTITION p4 VALUES LESS THAN (2006) ENGINE = ENGINE,
PARTITION p5 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p5 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -119,13 +119,13 @@ t1 CREATE TABLE `t1` ( ...@@ -119,13 +119,13 @@ t1 CREATE TABLE `t1` (
`c1` bigint(20) DEFAULT NULL, `c1` bigint(20) DEFAULT NULL,
`c2` int(11) DEFAULT NULL `c2` int(11) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (c1) PARTITION BY RANGE (c1)
(PARTITION p0 VALUES LESS THAN (1991) ENGINE = ENGINE, (PARTITION p0 VALUES LESS THAN (1991) ENGINE = ENGINE,
PARTITION p1 VALUES LESS THAN (1995) ENGINE = ENGINE, PARTITION p1 VALUES LESS THAN (1995) ENGINE = ENGINE,
PARTITION p2 VALUES LESS THAN (1999) ENGINE = ENGINE, PARTITION p2 VALUES LESS THAN (1999) ENGINE = ENGINE,
PARTITION p3 VALUES LESS THAN (2002) ENGINE = ENGINE, PARTITION p3 VALUES LESS THAN (2002) ENGINE = ENGINE,
PARTITION p4 VALUES LESS THAN (2006) ENGINE = ENGINE, PARTITION p4 VALUES LESS THAN (2006) ENGINE = ENGINE,
PARTITION p5 VALUES LESS THAN MAXVALUE ENGINE = ENGINE) */ PARTITION p5 VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -13,11 +13,11 @@ t1 CREATE TABLE `t1` ( ...@@ -13,11 +13,11 @@ t1 CREATE TABLE `t1` (
`c1` smallint(6) DEFAULT NULL, `c1` smallint(6) DEFAULT NULL,
`c2` int(11) DEFAULT NULL `c2` int(11) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (c1) PARTITION BY LIST (c1)
(PARTITION r0 VALUES IN (1,5,9,13,17,21) ENGINE = ENGINE, (PARTITION r0 VALUES IN (1,5,9,13,17,21) ENGINE = ENGINE,
PARTITION r1 VALUES IN (2,6,10,14,18,22) ENGINE = ENGINE, PARTITION r1 VALUES IN (2,6,10,14,18,22) ENGINE = ENGINE,
PARTITION r2 VALUES IN (3,7,11,15,19,23) ENGINE = ENGINE, PARTITION r2 VALUES IN (3,7,11,15,19,23) ENGINE = ENGINE,
PARTITION r3 VALUES IN (4,8,12,16,20,24) ENGINE = ENGINE) */ PARTITION r3 VALUES IN (4,8,12,16,20,24) ENGINE = ENGINE)
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -35,11 +35,11 @@ t1 CREATE TABLE `t1` ( ...@@ -35,11 +35,11 @@ t1 CREATE TABLE `t1` (
`c1` mediumint(9) DEFAULT NULL, `c1` mediumint(9) DEFAULT NULL,
`c2` int(11) DEFAULT NULL `c2` int(11) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (c1) PARTITION BY LIST (c1)
(PARTITION r0 VALUES IN (1,5,9,13,17,21) ENGINE = ENGINE, (PARTITION r0 VALUES IN (1,5,9,13,17,21) ENGINE = ENGINE,
PARTITION r1 VALUES IN (2,6,10,14,18,22) ENGINE = ENGINE, PARTITION r1 VALUES IN (2,6,10,14,18,22) ENGINE = ENGINE,
PARTITION r2 VALUES IN (3,7,11,15,19,23) ENGINE = ENGINE, PARTITION r2 VALUES IN (3,7,11,15,19,23) ENGINE = ENGINE,
PARTITION r3 VALUES IN (4,8,12,16,20,24) ENGINE = ENGINE) */ PARTITION r3 VALUES IN (4,8,12,16,20,24) ENGINE = ENGINE)
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -57,11 +57,11 @@ t1 CREATE TABLE `t1` ( ...@@ -57,11 +57,11 @@ t1 CREATE TABLE `t1` (
`c1` int(11) DEFAULT NULL, `c1` int(11) DEFAULT NULL,
`c2` int(11) DEFAULT NULL `c2` int(11) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (c1) PARTITION BY LIST (c1)
(PARTITION r0 VALUES IN (1,5,9,13,17,21) ENGINE = ENGINE, (PARTITION r0 VALUES IN (1,5,9,13,17,21) ENGINE = ENGINE,
PARTITION r1 VALUES IN (2,6,10,14,18,22) ENGINE = ENGINE, PARTITION r1 VALUES IN (2,6,10,14,18,22) ENGINE = ENGINE,
PARTITION r2 VALUES IN (3,7,11,15,19,23) ENGINE = ENGINE, PARTITION r2 VALUES IN (3,7,11,15,19,23) ENGINE = ENGINE,
PARTITION r3 VALUES IN (4,8,12,16,20,24) ENGINE = ENGINE) */ PARTITION r3 VALUES IN (4,8,12,16,20,24) ENGINE = ENGINE)
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -79,11 +79,11 @@ t1 CREATE TABLE `t1` ( ...@@ -79,11 +79,11 @@ t1 CREATE TABLE `t1` (
`c1` int(11) DEFAULT NULL, `c1` int(11) DEFAULT NULL,
`c2` int(11) DEFAULT NULL `c2` int(11) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (c1) PARTITION BY LIST (c1)
(PARTITION r0 VALUES IN (1,5,9,13,17,21) ENGINE = ENGINE, (PARTITION r0 VALUES IN (1,5,9,13,17,21) ENGINE = ENGINE,
PARTITION r1 VALUES IN (2,6,10,14,18,22) ENGINE = ENGINE, PARTITION r1 VALUES IN (2,6,10,14,18,22) ENGINE = ENGINE,
PARTITION r2 VALUES IN (3,7,11,15,19,23) ENGINE = ENGINE, PARTITION r2 VALUES IN (3,7,11,15,19,23) ENGINE = ENGINE,
PARTITION r3 VALUES IN (4,8,12,16,20,24) ENGINE = ENGINE) */ PARTITION r3 VALUES IN (4,8,12,16,20,24) ENGINE = ENGINE)
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -101,11 +101,11 @@ t1 CREATE TABLE `t1` ( ...@@ -101,11 +101,11 @@ t1 CREATE TABLE `t1` (
`c1` bigint(20) DEFAULT NULL, `c1` bigint(20) DEFAULT NULL,
`c2` int(11) DEFAULT NULL `c2` int(11) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1 ) ENGINE=ENGINE DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (c1) PARTITION BY LIST (c1)
(PARTITION r0 VALUES IN (1,5,9,13,17,21) ENGINE = ENGINE, (PARTITION r0 VALUES IN (1,5,9,13,17,21) ENGINE = ENGINE,
PARTITION r1 VALUES IN (2,6,10,14,18,22) ENGINE = ENGINE, PARTITION r1 VALUES IN (2,6,10,14,18,22) ENGINE = ENGINE,
PARTITION r2 VALUES IN (3,7,11,15,19,23) ENGINE = ENGINE, PARTITION r2 VALUES IN (3,7,11,15,19,23) ENGINE = ENGINE,
PARTITION r3 VALUES IN (4,8,12,16,20,24) ENGINE = ENGINE) */ PARTITION r3 VALUES IN (4,8,12,16,20,24) ENGINE = ENGINE)
DROP TABLE t1; DROP TABLE t1;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
...@@ -21,9 +21,9 @@ t1 CREATE TABLE `t1` ( ...@@ -21,9 +21,9 @@ t1 CREATE TABLE `t1` (
`s1` int(11) NOT NULL, `s1` int(11) NOT NULL,
PRIMARY KEY (`s1`) PRIMARY KEY (`s1`)
) ENGINE=FEDERATED DEFAULT CHARSET=latin1 ) ENGINE=FEDERATED DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (s1) PARTITION BY LIST (s1)
(PARTITION p1 VALUES IN (1,3) CONNECTION = 'mysql://root@127.0.0.1:SLAVE_PORT/federated/t1_1' ENGINE = FEDERATED, (PARTITION p1 VALUES IN (1,3) CONNECTION = 'mysql://root@127.0.0.1:SLAVE_PORT/federated/t1_1' ENGINE = FEDERATED,
PARTITION p2 VALUES IN (2,4) CONNECTION = 'mysql://root@127.0.0.1:SLAVE_PORT/federated/t1_2' ENGINE = FEDERATED) */ PARTITION p2 VALUES IN (2,4) CONNECTION = 'mysql://root@127.0.0.1:SLAVE_PORT/federated/t1_2' ENGINE = FEDERATED)
insert into t1 values (1), (2), (3), (4); insert into t1 values (1), (2), (3), (4);
select * from t1; select * from t1;
s1 s1
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment