config root man

Current Path : /home/usr.opt/mysql57/mysql-test/suite/engines/funcs/t/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //home/usr.opt/mysql57/mysql-test/suite/engines/funcs/t/tc_partition_list_directory.test

SET innodb_strict_mode=OFF;
mkdir $MYSQLTEST_VARDIR/tmp/tc_partition_list_directory;
mkdir $MYSQLTEST_VARDIR/tmp/tc_partition_list_directory/p1999;
mkdir $MYSQLTEST_VARDIR/tmp/tc_partition_list_directory/p1999/data;
mkdir $MYSQLTEST_VARDIR/tmp/tc_partition_list_directory/p1999/idx;
mkdir $MYSQLTEST_VARDIR/tmp/tc_partition_list_directory/p2000;
mkdir $MYSQLTEST_VARDIR/tmp/tc_partition_list_directory/p2000/data;
mkdir $MYSQLTEST_VARDIR/tmp/tc_partition_list_directory/p2000/idx;
mkdir $MYSQLTEST_VARDIR/tmp/tc_partition_list_directory/p2001;
mkdir $MYSQLTEST_VARDIR/tmp/tc_partition_list_directory/p2001/data;
mkdir $MYSQLTEST_VARDIR/tmp/tc_partition_list_directory/p2001/idx;
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
# Throws warnings on Windows platform
--disable_warnings
eval CREATE TABLE t1 (id INTEGER NOT NULL, name VARCHAR(30), adate DATE)
PARTITION BY LIST(YEAR(adate))
(
  PARTITION p1999 VALUES IN (1995, 1999, 2003)
    DATA DIRECTORY = '$MYSQLTEST_VARDIR/tmp/tc_partition_list_directory/p1999/data'
    INDEX DIRECTORY = '$MYSQLTEST_VARDIR/tmp/tc_partition_list_directory/p1999/idx',
  PARTITION p2000 VALUES IN (1996, 2000, 2004)
    DATA DIRECTORY = '$MYSQLTEST_VARDIR/tmp/tc_partition_list_directory/p2000/data'
    INDEX DIRECTORY = '$MYSQLTEST_VARDIR/tmp/tc_partition_list_directory/p2000/idx',
  PARTITION p2001 VALUES IN (1997, 2001, 2005)
    DATA DIRECTORY = '$MYSQLTEST_VARDIR/tmp/tc_partition_list_directory/p2001/data'
    INDEX DIRECTORY = '$MYSQLTEST_VARDIR/tmp/tc_partition_list_directory/p2001/idx'
);
--enable_warnings
--error ER_NO_PARTITION_FOR_GIVEN_VALUE
INSERT INTO t1 VALUES(1,'abc','1994-01-01');
INSERT INTO t1 VALUES(2,'abc','1995-01-01');
INSERT INTO t1 VALUES(3,'abc','1996-01-01');
INSERT INTO t1 VALUES(4,'abc','1997-01-01');
--error ER_NO_PARTITION_FOR_GIVEN_VALUE
INSERT INTO t1 VALUES(5,'abc','1998-01-01');
INSERT INTO t1 VALUES(6,'abc','1999-01-01');
INSERT INTO t1 VALUES(7,'abc','2000-01-01');
INSERT INTO t1 VALUES(8,'abc','2001-01-01');
--error ER_NO_PARTITION_FOR_GIVEN_VALUE
INSERT INTO t1 VALUES(9,'abc','2002-01-01');
INSERT INTO t1 VALUES(10,'abc','2003-01-01');
INSERT INTO t1 VALUES(11,'abc','2004-01-01');
INSERT INTO t1 VALUES(12,'abc','2005-01-01');
--error ER_NO_PARTITION_FOR_GIVEN_VALUE
INSERT INTO t1 VALUES(13,'abc','2006-01-01');
DROP TABLE t1;

Man Man