| 1 |
--- suite/storage_engine/alter_table_online.result |
| 2 |
+++ suite/storage_engine/alter_table_online.reject |
| 3 |
@@ -2,8 +2,35 @@ |
| 4 |
CREATE TABLE t1 (a <INT_COLUMN>, b <INT_COLUMN>, c <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>; |
| 5 |
INSERT INTO t1 (a,b,c) VALUES (1,100,'a'),(2,200,'b'),(3,300,'c'); |
| 6 |
ALTER ONLINE TABLE t1 MODIFY b <INT_COLUMN> DEFAULT 5; |
| 7 |
+ERROR 0A000: LOCK=NONE/SHARED is not supported for this operation. Try LOCK=EXCLUSIVE. |
| 8 |
+# ERROR: Statement ended with errno 1845, errname ER_ALTER_OPERATION_NOT_SUPPORTED (expected to succeed) |
| 9 |
+# ------------ UNEXPECTED RESULT ------------ |
| 10 |
+# The statement|command finished with ER_ALTER_OPERATION_NOT_SUPPORTED. |
| 11 |
+# Functionality or the mix could be unsupported|malfunctioning, or the problem was caused by previous errors. |
| 12 |
+# You can change the engine code, or create an rdiff, or disable the test by adding it to disabled.def. |
| 13 |
+# Further in this test, the message might sometimes be suppressed; a part of the test might be skipped. |
| 14 |
+# Also, this problem may cause a chain effect (more errors of different kinds in the test). |
| 15 |
+# ------------------------------------------- |
| 16 |
ALTER ONLINE TABLE t1 CHANGE b new_name <INT_COLUMN>; |
| 17 |
+ERROR 0A000: LOCK=NONE/SHARED is not supported for this operation. Try LOCK=EXCLUSIVE. |
| 18 |
+# ERROR: Statement ended with errno 1845, errname ER_ALTER_OPERATION_NOT_SUPPORTED (expected to succeed) |
| 19 |
+# ------------ UNEXPECTED RESULT ------------ |
| 20 |
+# The statement|command finished with ER_ALTER_OPERATION_NOT_SUPPORTED. |
| 21 |
+# Functionality or the mix could be unsupported|malfunctioning, or the problem was caused by previous errors. |
| 22 |
+# You can change the engine code, or create an rdiff, or disable the test by adding it to disabled.def. |
| 23 |
+# Further in this test, the message might sometimes be suppressed; a part of the test might be skipped. |
| 24 |
+# Also, this problem may cause a chain effect (more errors of different kinds in the test). |
| 25 |
+# ------------------------------------------- |
| 26 |
ALTER ONLINE TABLE t1 COMMENT 'new comment'; |
| 27 |
+ERROR 0A000: LOCK=NONE/SHARED is not supported for this operation. Try LOCK=EXCLUSIVE. |
| 28 |
+# ERROR: Statement ended with errno 1845, errname ER_ALTER_OPERATION_NOT_SUPPORTED (expected to succeed) |
| 29 |
+# ------------ UNEXPECTED RESULT ------------ |
| 30 |
+# The statement|command finished with ER_ALTER_OPERATION_NOT_SUPPORTED. |
| 31 |
+# Functionality or the mix could be unsupported|malfunctioning, or the problem was caused by previous errors. |
| 32 |
+# You can change the engine code, or create an rdiff, or disable the test by adding it to disabled.def. |
| 33 |
+# Further in this test, the message might sometimes be suppressed; a part of the test might be skipped. |
| 34 |
+# Also, this problem may cause a chain effect (more errors of different kinds in the test). |
| 35 |
+# ------------------------------------------- |
| 36 |
ALTER ONLINE TABLE t1 RENAME TO t2; |
| 37 |
ERROR 0A000: LOCK=NONE/SHARED is not supported for this operation. Try LOCK=EXCLUSIVE. |
| 38 |
DROP TABLE IF EXISTS t2; |
| 39 |
@@ -12,10 +39,6 @@ |
| 40 |
CREATE TEMPORARY TABLE t1 (a <INT_COLUMN>, b <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>; |
| 41 |
INSERT INTO t1 (a,b) VALUES (1,'a'),(2,'b'),(3,'c'); |
| 42 |
ALTER ONLINE TABLE t1 MODIFY b <INT_COLUMN> DEFAULT 5; |
| 43 |
-Warnings: |
| 44 |
-Warning 1366 Incorrect integer value: 'a' for column 'b' at row 1 |
| 45 |
-Warning 1366 Incorrect integer value: 'b' for column 'b' at row 2 |
| 46 |
-Warning 1366 Incorrect integer value: 'c' for column 'b' at row 3 |
| 47 |
ALTER ONLINE TABLE t1 CHANGE b new_name <INT_COLUMN>; |
| 48 |
ALTER ONLINE TABLE t1 COMMENT 'new comment'; |
| 49 |
ALTER ONLINE TABLE t1 RENAME TO t2; |
| 50 |
@@ -23,12 +46,30 @@ |
| 51 |
CREATE TABLE t1 (a <INT_COLUMN>, b <INT_COLUMN>, c <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>; |
| 52 |
INSERT INTO t1 (a,b,c) VALUES (1,100,'a'),(2,200,'b'),(3,300,'c'); |
| 53 |
ALTER ONLINE TABLE t1 DROP COLUMN b, ADD b <INT_COLUMN>; |
| 54 |
+ERROR 0A000: LOCK=NONE/SHARED is not supported for this operation. Try LOCK=EXCLUSIVE. |
| 55 |
+# ERROR: Statement ended with errno 1845, errname ER_ALTER_OPERATION_NOT_SUPPORTED (expected to succeed) |
| 56 |
+# ------------ UNEXPECTED RESULT ------------ |
| 57 |
+# The statement|command finished with ER_ALTER_OPERATION_NOT_SUPPORTED. |
| 58 |
+# Functionality or the mix could be unsupported|malfunctioning, or the problem was caused by previous errors. |
| 59 |
+# You can change the engine code, or create an rdiff, or disable the test by adding it to disabled.def. |
| 60 |
+# Further in this test, the message might sometimes be suppressed; a part of the test might be skipped. |
| 61 |
+# Also, this problem may cause a chain effect (more errors of different kinds in the test). |
| 62 |
+# ------------------------------------------- |
| 63 |
ALTER ONLINE TABLE t1 MODIFY b BIGINT <CUSTOM_COL_OPTIONS>; |
| 64 |
-ERROR 0A000: LOCK=NONE is not supported. Reason: Cannot change column type. Try LOCK=SHARED. |
| 65 |
+ERROR 0A000: LOCK=NONE/SHARED is not supported for this operation. Try LOCK=EXCLUSIVE. |
| 66 |
+# ERROR: Statement ended with errno 1845, errname ER_ALTER_OPERATION_NOT_SUPPORTED (expected results: ER_ALTER_OPERATION_NOT_SUPPORTED_REASON) |
| 67 |
ALTER ONLINE TABLE t1 ENGINE=MEMORY; |
| 68 |
ERROR 0A000: LOCK=NONE is not supported. Reason: COPY algorithm requires a lock. Try LOCK=SHARED. |
| 69 |
DROP TABLE t1; |
| 70 |
CREATE TABLE t1 (a <INT_COLUMN>, b <INT_COLUMN>, c <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>; |
| 71 |
ALTER ONLINE TABLE t1 ADD INDEX (b); |
| 72 |
-ALTER ONLINE TABLE t1 DROP INDEX b; |
| 73 |
+ERROR 0A000: LOCK=NONE/SHARED is not supported for this operation. Try LOCK=EXCLUSIVE. |
| 74 |
+# ERROR: Statement ended with errno 1845, errname ER_ALTER_OPERATION_NOT_SUPPORTED (expected to succeed) |
| 75 |
+# ------------ UNEXPECTED RESULT ------------ |
| 76 |
+# The statement|command finished with ER_ALTER_OPERATION_NOT_SUPPORTED. |
| 77 |
+# Adding an index or ALTER ONLINE or the mix could be unsupported|malfunctioning, or the problem was caused by previous errors. |
| 78 |
+# You can change the engine code, or create an rdiff, or disable the test by adding it to disabled.def. |
| 79 |
+# Further in this test, the message might sometimes be suppressed; a part of the test might be skipped. |
| 80 |
+# Also, this problem may cause a chain effect (more errors of different kinds in the test). |
| 81 |
+# ------------------------------------------- |
| 82 |
DROP TABLE t1; |