Commit 796a36fb authored by unknown's avatar unknown

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

this was fixed by WL 2604


mysql-test/r/partition_mgm_err.result:
  result block for bug#15523
mysql-test/t/partition_mgm_err.test:
  test block for bug #15523
parent 0e8d8eb7
...@@ -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