mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
68d4c991e1
into dator5.(none):/home/pappa/bug19281 mysql-test/t/partition_mgm.test: Auto merged
18 lines
492 B
Text
18 lines
492 B
Text
-- source include/have_partition.inc
|
|
--disable_warnings
|
|
DROP TABLE IF EXISTS t1;
|
|
--enable_warnings
|
|
CREATE TABLE t1 (f_date DATE, f_varchar VARCHAR(30))
|
|
PARTITION BY HASH(CAST(YEAR(f_date) AS SIGNED INTEGER)) PARTITIONS 2;
|
|
SHOW CREATE TABLE t1;
|
|
|
|
--replace_result $MYSQLTEST_VARDIR "hello"
|
|
--exec ls $MYSQLTEST_VARDIR/master-data/test/t1*
|
|
ALTER TABLE t1 COALESCE PARTITION 1;
|
|
SHOW CREATE TABLE t1;
|
|
--replace_result $MYSQLTEST_VARDIR "hello"
|
|
--exec ls $MYSQLTEST_VARDIR/master-data/test/t1*
|
|
|
|
|
|
|
|
|