| 1 |
source include/have_ndb.inc; |
| 2 |
SET SESSION default_storage_engine = ndbcluster; |
| 3 |
let $invisible_indexes_skip_fulltext=1; |
| 4 |
let $invisible_indexes_skip_spatial=1; |
| 5 |
let $invisible_indexes_skip_non_pk_autoincrement=1; |
| 6 |
source include/invisible_indexes.inc; |
| 7 |
|
| 8 |
--echo # |
| 9 |
--echo # Tests Specific to ndbcluster |
| 10 |
--echo # |
| 11 |
|
| 12 |
CREATE TABLE t1 ( |
| 13 |
a INT, KEY (a), |
| 14 |
b INT, KEY (b) INVISIBLE |
| 15 |
) engine=NDB; |
| 16 |
|
| 17 |
INSERT INTO t1 VALUES (1, 1), (2, 2), (3, 3); |
| 18 |
|
| 19 |
--error ER_ALTER_OPERATION_NOT_SUPPORTED_REASON |
| 20 |
ALTER TABLE t1 ALGORITHM=INPLACE, RENAME INDEX a TO x, ALTER INDEX b VISIBLE; |
| 21 |
|
| 22 |
DROP TABLE t1; |