| 1 |
--- alter_table.result |
| 2 |
+++ alter_table.reject |
| 3 |
@@ -1,42 +1,29 @@ |
| 4 |
DROP TABLE IF EXISTS t1; |
| 5 |
CREATE TABLE t1 (a <INT_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS> PARTITION BY HASH(a) PARTITIONS 2; |
| 6 |
-INSERT INTO t1 (a) VALUES (1),(2),(2),(3),(4); |
| 7 |
-ALTER TABLE t1 ADD PARTITION PARTITIONS 2; |
| 8 |
-EXPLAIN PARTiTIONS SELECT a FROM t1 WHERE a = 3; |
| 9 |
-id select_type table partitions type possible_keys key key_len ref rows Extra |
| 10 |
-1 SIMPLE t1 p3 # # # # # # # |
| 11 |
-ALTER TABLE t1 COALESCE PARTITION 1; |
| 12 |
-EXPLAIN PARTiTIONS SELECT a FROM t1 WHERE a = 3; |
| 13 |
-id select_type table partitions type possible_keys key key_len ref rows Extra |
| 14 |
-1 SIMPLE t1 p0 # # # # # # # |
| 15 |
-ALTER TABLE t1 REORGANIZE PARTITION; |
| 16 |
-EXPLAIN PARTiTIONS SELECT a FROM t1 WHERE a = 2; |
| 17 |
-id select_type table partitions type possible_keys key key_len ref rows Extra |
| 18 |
-1 SIMPLE t1 p0 # # # # # # # |
| 19 |
-ALTER TABLE t1 REBUILD PARTITION p0; |
| 20 |
-EXPLAIN PARTiTIONS SELECT a FROM t1; |
| 21 |
-id select_type table partitions type possible_keys key key_len ref rows Extra |
| 22 |
-1 SIMPLE t1 p0 # # # # # # # |
| 23 |
-ALTER TABLE t1 REMOVE PARTITIONING; |
| 24 |
-EXPLAIN PARTiTIONS SELECT a FROM t1; |
| 25 |
-id select_type table partitions type possible_keys key key_len ref rows Extra |
| 26 |
-1 SIMPLE t1 NULL # # # # # # # |
| 27 |
-ALTER TABLE t1 PARTITION BY LIST(a) (PARTITION p0 VALUES IN (1,2,3), PARTITION p1 VALUES IN (101,102)); |
| 28 |
-ERROR HY000: Table has no partition for value 4 |
| 29 |
-ALTER TABLE t1 PARTITION BY LIST(a) (PARTITION p0 VALUES IN (1,2,3,4), PARTITION p1 VALUES IN (101,102)); |
| 30 |
-INSERT INTO t1 (a) VALUES (50); |
| 31 |
-ERROR HY000: Table has no partition for value 50 |
| 32 |
-ALTER TABLE t1 ADD PARTITION (PARTITION p2 VALUES IN (50,51)); |
| 33 |
-INSERT INTO t1 (a) VALUES (50); |
| 34 |
-ALTER TABLE t1 DROP PARTITION p1; |
| 35 |
-ALTER TABLE t1 REORGANIZE PARTITION p0, p2 INTO (PARTITION p0 VALUES IN (1,2,3), PARTITION p1 VALUES IN (4), PARTITION p2 VALUES IN (50,51), PARTITION p3 VALUES IN (101,102)); |
| 36 |
-EXPLAIN PARTiTIONS SELECT a FROM t1 WHERE a = 2; |
| 37 |
-id select_type table partitions type possible_keys key key_len ref rows Extra |
| 38 |
-1 SIMPLE t1 p0 # # # # # # # |
| 39 |
-DROP TABLE t1; |
| 40 |
+ERROR HY000: Engine cannot be used in partitioned tables |
| 41 |
+# ERROR: Statement ended with errno 1572, errname ER_PARTITION_MERGE_ERROR (expected to succeed) |
| 42 |
+# ------------ UNEXPECTED RESULT ------------ |
| 43 |
+# [ CREATE TABLE t1 (a INT(11) /*!*/ /*Custom column options*/) ENGINE=MRG_MYISAM /*!*/ /*Custom table options*/ UNION(mrg.t1) INSERT_METHOD=LAST PARTITION BY HASH(a) PARTITIONS 2 ] |
| 44 |
+# The statement|command finished with ER_PARTITION_MERGE_ERROR. |
| 45 |
+# Partitions or the mix could be unsupported|malfunctioning, or the problem was caused by previous errors. |
| 46 |
+# You can change the engine code, or create an rdiff, or disable the test by adding it to disabled.def. |
| 47 |
+# Further in this test, the message might sometimes be suppressed; a part of the test might be skipped. |
| 48 |
+# Also, this problem may cause a chain effect (more errors of different kinds in the test). |
| 49 |
+# ------------------------------------------- |
| 50 |
CREATE TABLE t1 (a <INT_COLUMN>, b <INT_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS> PARTITION BY LIST(a) SUBPARTITION by HASH(b) ( |
| 51 |
PARTITION abc VALUES IN (1,2,3), |
| 52 |
PARTITION def VALUES IN (100,101,102) |
| 53 |
); |
| 54 |
-ALTER TABLE t1 DROP PARTITION abc; |
| 55 |
-DROP TABLE t1; |
| 56 |
+ERROR HY000: Engine cannot be used in partitioned tables |
| 57 |
+# ERROR: Statement ended with errno 1572, errname ER_PARTITION_MERGE_ERROR (expected to succeed) |
| 58 |
+# ------------ UNEXPECTED RESULT ------------ |
| 59 |
+# [ CREATE TABLE t1 (a INT(11) /*!*/ /*Custom column options*/, b INT(11) /*!*/ /*Custom column options*/) ENGINE=MRG_MYISAM /*!*/ /*Custom table options*/ UNION(mrg.t1) INSERT_METHOD=LAST PARTITION BY LIST(a) SUBPARTITION by HASH(b) ( |
| 60 |
+PARTITION abc VALUES IN (1,2,3), |
| 61 |
+PARTITION def VALUES IN (100,101,102) |
| 62 |
+) ] |
| 63 |
+# The statement|command finished with ER_PARTITION_MERGE_ERROR. |
| 64 |
+# Partitions or subpartitions or the mix could be unsupported|malfunctioning, or the problem was caused by previous errors. |
| 65 |
+# You can change the engine code, or create an rdiff, or disable the test by adding it to disabled.def. |
| 66 |
+# Further in this test, the message might sometimes be suppressed; a part of the test might be skipped. |
| 67 |
+# Also, this problem may cause a chain effect (more errors of different kinds in the test). |
| 68 |
+# ------------------------------------------- |