| 1 |
--- truncate_table.result |
| 2 |
+++ truncate_table.reject |
| 3 |
@@ -1,68 +1,34 @@ |
| 4 |
DROP TABLE IF EXISTS t1; |
| 5 |
CREATE TABLE t1 (a <INT_COLUMN>, b <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS> PARTITION BY HASH(a) PARTITIONS 2; |
| 6 |
-TRUNCATE TABLE t1; |
| 7 |
-INSERT INTO t1 (a,b) VALUES (1,'a'), (2,'b'), (3,'c'); |
| 8 |
-TRUNCATE TABLE t1; |
| 9 |
-SELECT a,b FROM t1; |
| 10 |
-a b |
| 11 |
-DROP TABLE t1; |
| 12 |
+ERROR HY000: Engine cannot be used in partitioned tables |
| 13 |
+# ERROR: Statement ended with errno 1572, errname ER_PARTITION_MERGE_ERROR (expected to succeed) |
| 14 |
+# ------------ UNEXPECTED RESULT ------------ |
| 15 |
+# [ CREATE TABLE t1 (a INT(11) /*!*/ /*Custom column options*/, b CHAR(8) /*!*/ /*Custom column options*/) ENGINE=MRG_MYISAM /*!*/ /*Custom table options*/ UNION(mrg.t1) INSERT_METHOD=LAST PARTITION BY HASH(a) PARTITIONS 2 ] |
| 16 |
+# The statement|command finished with ER_PARTITION_MERGE_ERROR. |
| 17 |
+# Partitions or the mix could be unsupported|malfunctioning, or the problem was caused by previous errors. |
| 18 |
+# You can change the engine code, or create an rdiff, or disable the test by adding it to disabled.def. |
| 19 |
+# Further in this test, the message might sometimes be suppressed; a part of the test might be skipped. |
| 20 |
+# Also, this problem may cause a chain effect (more errors of different kinds in the test). |
| 21 |
+# ------------------------------------------- |
| 22 |
CREATE TABLE t1 (a <INT_COLUMN> KEY AUTO_INCREMENT, c <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS> PARTITION BY HASH(a) PARTITIONS 2; |
| 23 |
-SHOW CREATE TABLE t1; |
| 24 |
-Table Create Table |
| 25 |
-t1 CREATE TABLE `t1` ( |
| 26 |
- `a` int(11) NOT NULL AUTO_INCREMENT, |
| 27 |
- `c` char(8) DEFAULT NULL, |
| 28 |
- PRIMARY KEY (`a`) |
| 29 |
-) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 |
| 30 |
- PARTITION BY HASH (`a`) |
| 31 |
-PARTITIONS 2 |
| 32 |
-INSERT INTO t1 (c) VALUES ('a'),('b'),('c'); |
| 33 |
-SHOW CREATE TABLE t1; |
| 34 |
-Table Create Table |
| 35 |
-t1 CREATE TABLE `t1` ( |
| 36 |
- `a` int(11) NOT NULL AUTO_INCREMENT, |
| 37 |
- `c` char(8) DEFAULT NULL, |
| 38 |
- PRIMARY KEY (`a`) |
| 39 |
-) ENGINE=<STORAGE_ENGINE> AUTO_INCREMENT=4 DEFAULT CHARSET=latin1 |
| 40 |
- PARTITION BY HASH (`a`) |
| 41 |
-PARTITIONS 2 |
| 42 |
-TRUNCATE TABLE t1; |
| 43 |
-SHOW CREATE TABLE t1; |
| 44 |
-Table Create Table |
| 45 |
-t1 CREATE TABLE `t1` ( |
| 46 |
- `a` int(11) NOT NULL AUTO_INCREMENT, |
| 47 |
- `c` char(8) DEFAULT NULL, |
| 48 |
- PRIMARY KEY (`a`) |
| 49 |
-) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 |
| 50 |
- PARTITION BY HASH (`a`) |
| 51 |
-PARTITIONS 2 |
| 52 |
-INSERT INTO t1 (c) VALUES ('d'); |
| 53 |
-SHOW CREATE TABLE t1; |
| 54 |
-Table Create Table |
| 55 |
-t1 CREATE TABLE `t1` ( |
| 56 |
- `a` int(11) NOT NULL AUTO_INCREMENT, |
| 57 |
- `c` char(8) DEFAULT NULL, |
| 58 |
- PRIMARY KEY (`a`) |
| 59 |
-) ENGINE=<STORAGE_ENGINE> AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 |
| 60 |
- PARTITION BY HASH (`a`) |
| 61 |
-PARTITIONS 2 |
| 62 |
-SELECT a,c FROM t1; |
| 63 |
-a c |
| 64 |
-1 d |
| 65 |
-DROP TABLE t1; |
| 66 |
+ERROR HY000: Engine cannot be used in partitioned tables |
| 67 |
+# ERROR: Statement ended with errno 1572, errname ER_PARTITION_MERGE_ERROR (expected to succeed) |
| 68 |
+# ------------ UNEXPECTED RESULT ------------ |
| 69 |
+# [ CREATE TABLE t1 (a INT(11) /*!*/ /*Custom indexed column options*/ KEY AUTO_INCREMENT, c CHAR(8) /*!*/ /*Custom column options*/) ENGINE=MRG_MYISAM /*!*/ /*Custom table options*/ UNION(mrg.t1) INSERT_METHOD=LAST PARTITION BY HASH(a) PARTITIONS 2 ] |
| 70 |
+# The statement|command finished with ER_PARTITION_MERGE_ERROR. |
| 71 |
+# Partitions or PK or auto-increment or the mix could be unsupported|malfunctioning, or the problem was caused by previous errors. |
| 72 |
+# You can change the engine code, or create an rdiff, or disable the test by adding it to disabled.def. |
| 73 |
+# Further in this test, the message might sometimes be suppressed; a part of the test might be skipped. |
| 74 |
+# Also, this problem may cause a chain effect (more errors of different kinds in the test). |
| 75 |
+# ------------------------------------------- |
| 76 |
CREATE TABLE t1 (a <INT_COLUMN>, b <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS> PARTITION BY HASH(a) PARTITIONS 2; |
| 77 |
-INSERT INTO t1 (a,b) VALUES (1,'a'),(2,'b'),(3,'c'),(2,'d'),(4,'e'),(100,'f'),(101,'g'); |
| 78 |
-ALTER TABLE t1 TRUNCATE PARTITION p0; |
| 79 |
-SELECT a,b FROM t1; |
| 80 |
-a b |
| 81 |
-1 a |
| 82 |
-101 g |
| 83 |
-3 c |
| 84 |
-EXPLAIN PARTITIONS SELECT a,b FROM t1; |
| 85 |
-id select_type table partitions type possible_keys key key_len ref rows Extra |
| 86 |
-1 SIMPLE t1 p0,p1 # # # # # # |
| 87 |
-INSERT INTO t1 (a,b) VALUES (1,'a'), (2,'b'), (3,'c'); |
| 88 |
-ALTER TABLE t1 TRUNCATE PARTITION ALL; |
| 89 |
-SELECT a,b FROM t1; |
| 90 |
-a b |
| 91 |
-DROP TABLE t1; |
| 92 |
+ERROR HY000: Engine cannot be used in partitioned tables |
| 93 |
+# ERROR: Statement ended with errno 1572, errname ER_PARTITION_MERGE_ERROR (expected to succeed) |
| 94 |
+# ------------ UNEXPECTED RESULT ------------ |
| 95 |
+# [ CREATE TABLE t1 (a INT(11) /*!*/ /*Custom column options*/, b CHAR(8) /*!*/ /*Custom column options*/) ENGINE=MRG_MYISAM /*!*/ /*Custom table options*/ UNION(mrg.t1) INSERT_METHOD=LAST PARTITION BY HASH(a) PARTITIONS 2 ] |
| 96 |
+# The statement|command finished with ER_PARTITION_MERGE_ERROR. |
| 97 |
+# Partitions or the mix could be unsupported|malfunctioning, or the problem was caused by previous errors. |
| 98 |
+# You can change the engine code, or create an rdiff, or disable the test by adding it to disabled.def. |
| 99 |
+# Further in this test, the message might sometimes be suppressed; a part of the test might be skipped. |
| 100 |
+# Also, this problem may cause a chain effect (more errors of different kinds in the test). |
| 101 |
+# ------------------------------------------- |