2006-06-20 10:16:08 -04:00
|
|
|
-- source include/have_partition.inc
|
2006-05-27 16:34:13 -04:00
|
|
|
--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;
|
|
|
|
|
2006-06-20 16:38:42 -04:00
|
|
|
--replace_result $MYSQLTEST_VARDIR "hello"
|
|
|
|
--exec ls $MYSQLTEST_VARDIR/master-data/test/t1*
|
2006-05-27 16:34:13 -04:00
|
|
|
ALTER TABLE t1 COALESCE PARTITION 1;
|
|
|
|
SHOW CREATE TABLE t1;
|
2006-06-20 16:38:42 -04:00
|
|
|
--replace_result $MYSQLTEST_VARDIR "hello"
|
|
|
|
--exec ls $MYSQLTEST_VARDIR/master-data/test/t1*
|
2006-05-27 16:34:13 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|