mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +01:00
b3a71e3448
Post pushbuild fix Disabled test on windows due to bug#30459 (DATA/INDEX DIR for partitions not working on windows) Patch from Mattias Jonsson. mysql-test/r/partition_mgm.result: Bug#32091: Security breach via directory changes fixed non-windows lines. mysql-test/t/partition_mgm.test: Bug#32091: Security breach via directory changes fixed non-windows lines. mysql-test/t/partition_symlink.test: Bug#32091: Security breach via directory changes Added no_windows, since it is affected of bug#30459
38 lines
1.4 KiB
Text
38 lines
1.4 KiB
Text
DROP TABLE IF EXISTS t1;
|
|
create table t1 (a int)
|
|
partition by range (a)
|
|
subpartition by key (a)
|
|
(partition p0 values less than (10) (subpartition sp00, subpartition sp01),
|
|
partition p1 values less than (20) (subpartition sp10, subpartition sp11));
|
|
alter table t1 reorganize partition p0 into
|
|
(partition p0 values less than (10) (subpartition sp00,
|
|
subpartition sp01, subpartition sp02));
|
|
ERROR HY000: Wrong number of subpartitions defined, mismatch with previous setting
|
|
drop table t1;
|
|
CREATE TABLE t1 (f_date DATE, f_varchar VARCHAR(30))
|
|
PARTITION BY HASH(YEAR(f_date)) PARTITIONS 2;
|
|
SHOW CREATE TABLE t1;
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`f_date` date DEFAULT NULL,
|
|
`f_varchar` varchar(30) DEFAULT NULL
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (YEAR(f_date)) PARTITIONS 2 */
|
|
ALTER TABLE t1 COALESCE PARTITION 1;
|
|
SHOW CREATE TABLE t1;
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`f_date` date DEFAULT NULL,
|
|
`f_varchar` varchar(30) DEFAULT NULL
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (YEAR(f_date)) PARTITIONS 1 */
|
|
drop table t1;
|
|
create table t1 (a int)
|
|
partition by list (a)
|
|
subpartition by hash (a)
|
|
(partition p11 values in (1,2),
|
|
partition p12 values in (3,4));
|
|
alter table t1 REORGANIZE partition p11, p12 INTO
|
|
(partition p1 values in (1,2,3,4));
|
|
alter table t1 REORGANIZE partition p1 INTO
|
|
(partition p11 values in (1,2),
|
|
partition p12 values in (3,4));
|
|
drop table t1;
|