diff options
author | Omer BarNir <omer@mysql.com> | 2010-03-17 23:42:07 -0700 |
---|---|---|
committer | Omer BarNir <omer@mysql.com> | 2010-03-17 23:42:07 -0700 |
commit | c92b9b7315c01e87b1099e7df182213a1d8ffa6f (patch) | |
tree | 096cc41e4d541dd16c84cb829e630fef3d5baba7 /mysql-test/suite/engines/funcs/r/tc_partition_list_error.result | |
parent | 96d4a0384629e5cddc93ee215e7af484e4b95bde (diff) | |
download | mariadb-git-c92b9b7315c01e87b1099e7df182213a1d8ffa6f.tar.gz |
Test suites for engine testing, moved from test-extra so will be available
for general use.
mysql-test/Makefile.am:
Adding directories of additional test suites
mysql-test/mysql-stress-test.pl:
Adding check for additional errors checking during test run
Diffstat (limited to 'mysql-test/suite/engines/funcs/r/tc_partition_list_error.result')
-rw-r--r-- | mysql-test/suite/engines/funcs/r/tc_partition_list_error.result | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/mysql-test/suite/engines/funcs/r/tc_partition_list_error.result b/mysql-test/suite/engines/funcs/r/tc_partition_list_error.result new file mode 100644 index 00000000000..19b60489b47 --- /dev/null +++ b/mysql-test/suite/engines/funcs/r/tc_partition_list_error.result @@ -0,0 +1,66 @@ +DROP TABLE IF EXISTS t1; +CREATE TABLE t1 ( c1 SMALLINT, c2 INT) PARTITION BY LIST (c1) ( +PARTITION r0 VALUES IN (1, 5, 9, 13, 17, 21), +PARTITION r1 VALUES IN (2, 6, 10, 14, 18, 21), +PARTITION r2 VALUES IN (3, 7, 11, 15, 19, 23), +PARTITION r3 VALUES IN (4, 8, 12, 16, 20, 24)); +ERROR HY000: Multiple definition of same constant in list partitioning +CREATE TABLE t1 (id SMALLINT, name VARCHAR(30), adate DATE) +PARTITION BY LIST(YEAR(adate)) +( +PARTITION p1 VALUES IN (1995, 1999, 2003), +PARTITION p1 VALUES IN (1996, 2000, 2004) +); +ERROR HY000: Duplicate partition name p1 +CREATE TABLE t1 ( c1 MEDIUMINT, c2 INT) PARTITION BY LIST (c1) ( +PARTITION r0 VALUES IN (1, 5, 9, 13, 17, 21), +PARTITION r1 VALUES IN (2, 6, 10, 14, 18, 21), +PARTITION r2 VALUES IN (3, 7, 11, 15, 19, 23), +PARTITION r3 VALUES IN (4, 8, 12, 16, 20, 24)); +ERROR HY000: Multiple definition of same constant in list partitioning +CREATE TABLE t1 (id MEDIUMINT, name VARCHAR(30), adate DATE) +PARTITION BY LIST(YEAR(adate)) +( +PARTITION p1 VALUES IN (1995, 1999, 2003), +PARTITION p1 VALUES IN (1996, 2000, 2004) +); +ERROR HY000: Duplicate partition name p1 +CREATE TABLE t1 ( c1 INT, c2 INT) PARTITION BY LIST (c1) ( +PARTITION r0 VALUES IN (1, 5, 9, 13, 17, 21), +PARTITION r1 VALUES IN (2, 6, 10, 14, 18, 21), +PARTITION r2 VALUES IN (3, 7, 11, 15, 19, 23), +PARTITION r3 VALUES IN (4, 8, 12, 16, 20, 24)); +ERROR HY000: Multiple definition of same constant in list partitioning +CREATE TABLE t1 (id INT, name VARCHAR(30), adate DATE) +PARTITION BY LIST(YEAR(adate)) +( +PARTITION p1 VALUES IN (1995, 1999, 2003), +PARTITION p1 VALUES IN (1996, 2000, 2004) +); +ERROR HY000: Duplicate partition name p1 +CREATE TABLE t1 ( c1 INTEGER, c2 INT) PARTITION BY LIST (c1) ( +PARTITION r0 VALUES IN (1, 5, 9, 13, 17, 21), +PARTITION r1 VALUES IN (2, 6, 10, 14, 18, 21), +PARTITION r2 VALUES IN (3, 7, 11, 15, 19, 23), +PARTITION r3 VALUES IN (4, 8, 12, 16, 20, 24)); +ERROR HY000: Multiple definition of same constant in list partitioning +CREATE TABLE t1 (id INTEGER, name VARCHAR(30), adate DATE) +PARTITION BY LIST(YEAR(adate)) +( +PARTITION p1 VALUES IN (1995, 1999, 2003), +PARTITION p1 VALUES IN (1996, 2000, 2004) +); +ERROR HY000: Duplicate partition name p1 +CREATE TABLE t1 ( c1 BIGINT, c2 INT) PARTITION BY LIST (c1) ( +PARTITION r0 VALUES IN (1, 5, 9, 13, 17, 21), +PARTITION r1 VALUES IN (2, 6, 10, 14, 18, 21), +PARTITION r2 VALUES IN (3, 7, 11, 15, 19, 23), +PARTITION r3 VALUES IN (4, 8, 12, 16, 20, 24)); +ERROR HY000: Multiple definition of same constant in list partitioning +CREATE TABLE t1 (id BIGINT, name VARCHAR(30), adate DATE) +PARTITION BY LIST(YEAR(adate)) +( +PARTITION p1 VALUES IN (1995, 1999, 2003), +PARTITION p1 VALUES IN (1996, 2000, 2004) +); +ERROR HY000: Duplicate partition name p1 |