mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 19:11:46 +01:00
BUG# 15523 - ALTER TABLE ... PARTITION BY does not work
this was fixed by WL 2604
This commit is contained in:
parent
7350f48356
commit
e389f947f8
2 changed files with 22 additions and 0 deletions
|
@ -125,3 +125,16 @@ ALTER TABLE t1 ADD PARTITION (
|
|||
PARTITION p5 VALUES LESS THAN (2010),
|
||||
PARTITION p6 VALUES LESS THAN MAXVALUE);
|
||||
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 (
|
|||
PARTITION p5 VALUES LESS THAN (2010),
|
||||
PARTITION p6 VALUES LESS THAN MAXVALUE);
|
||||
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue