1 # Windows-specific partition tests
2 --source include/windows.inc
3 --source include/have_partition.inc
5 # These tests contain Windows specific directory/file format.
8 # Bug 25141: Crash Server on Partitioning command
10 # Bug#30459: Partitioning across disks failing on Windows
11 # updated this test, since symlinked files are not supported on Windows
12 # (not the same as symlinked directories that have a special hack
13 # on windows). This test is not dependent on have_symlink.
16 DROP TABLE IF EXISTS t1;
20 c1 int(10) unsigned NOT NULL AUTO_INCREMENT,
21 c2 varchar(30) NOT NULL,
22 c3 smallint(5) unsigned DEFAULT NULL,
25 PARTITION BY HASH(c1)(
27 DATA DIRECTORY = 'C:/mysqltest/p0Data'
28 INDEX DIRECTORY = 'D:/mysqltest/p0Index',
31 DATA DIRECTORY = 'E:/mysqltest/p2Data'
32 INDEX DIRECTORY = 'F:/mysqltest/p2Index'
34 INSERT INTO t1 VALUES (NULL, "first", 1);
35 INSERT INTO t1 VALUES (NULL, "second", 2);
36 INSERT INTO t1 VALUES (NULL, "third", 3);
37 ALTER TABLE t1 ADD PARTITION (PARTITION p3 DATA DIRECTORY = 'G:/mysqltest/p3Data' INDEX DIRECTORY = 'H:/mysqltest/p3Index');
38 INSERT INTO t1 VALUES (NULL, "last", 4);