| 1 |
--source setup.inc |
| 2 |
|
| 3 |
# Test ALTER TABLE with force of inplace rename |
| 4 |
# - will try to perform the rename using inplace API |
| 5 |
# - NOTE! caveat is that inplace API will only be used if there are |
| 6 |
# other changes to the table - else "simple rename" will be used |
| 7 |
# thus the test will add a column and rename table at same time |
| 8 |
# |
| 9 |
# Query will fail since ndbcluster returns HA_ALTER_INPLACE_NOT_SUPPORTED |
| 10 |
# when mysqld asks if it supports inplace ALTER RENAME. Since user requested |
| 11 |
# inplace, the query will be rejected by mysqld. |
| 12 |
|
| 13 |
--error ER_ALTER_OPERATION_NOT_SUPPORTED_REASON |
| 14 |
ALTER TABLE t1 |
| 15 |
algorithm=inplace, |
| 16 |
ADD COLUMN c INT, |
| 17 |
RENAME TO t1_renamed; |
| 18 |
|
| 19 |
--source verify_mysql_dd.inc |
| 20 |
|
| 21 |
--source cleanup.inc |