Commit e389f947 authored by reggie@linux.site's avatar reggie@linux.site

BUG# 15523 - ALTER TABLE ... PARTITION BY does not work

this was fixed by WL 2604
parent 7350f483
...@@ -125,3 +125,16 @@ ALTER TABLE t1 ADD PARTITION ( ...@@ -125,3 +125,16 @@ ALTER TABLE t1 ADD PARTITION (
PARTITION p5 VALUES LESS THAN (2010), PARTITION p5 VALUES LESS THAN (2010),
PARTITION p6 VALUES LESS THAN MAXVALUE); PARTITION p6 VALUES LESS THAN MAXVALUE);
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a INT);
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
ALTER TABLE t1 PARTITION BY KEY(a) PARTITIONS 2;
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 PARTITION BY KEY (a) PARTITIONS 2
DROP TABLE t1;
...@@ -184,3 +184,12 @@ ALTER TABLE t1 ADD PARTITION ( ...@@ -184,3 +184,12 @@ ALTER TABLE t1 ADD PARTITION (
PARTITION p5 VALUES LESS THAN (2010), PARTITION p5 VALUES LESS THAN (2010),
PARTITION p6 VALUES LESS THAN MAXVALUE); PARTITION p6 VALUES LESS THAN MAXVALUE);
DROP TABLE t1; DROP TABLE t1;
#
#BUG 15523 ALTER TABLE ... PARTITION BY does not work
#
CREATE TABLE t1 (a INT);
SHOW CREATE TABLE t1;
ALTER TABLE t1 PARTITION BY KEY(a) PARTITIONS 2;
SHOW CREATE TABLE t1;
DROP TABLE t1;
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