| 1 |
-- source include/have_ndb.inc |
| 2 |
# We are using some debug-only features in this test |
| 3 |
--source include/have_debug.inc |
| 4 |
|
| 5 |
--echo # |
| 6 |
--echo # Bug#24444878 MYSQLD CRASHED DURING UNIQUE KEY CREATION |
| 7 |
--echo # WITH AN ERROR "VOID HA_NDBCLUSTER |
| 8 |
--echo # |
| 9 |
|
| 10 |
create table t1( |
| 11 |
a int primary key, |
| 12 |
b int |
| 13 |
) engine=ndb; |
| 14 |
insert into t1 values (1,1); |
| 15 |
|
| 16 |
--echo # Set debug variable to make get_metadata() fail during |
| 17 |
--echo # the alter |
| 18 |
set global debug='+d,ndb_get_metadata_fail'; |
| 19 |
|
| 20 |
--echo # Run alter which will fail due to the debug variable |
| 21 |
--error ER_TABLE_DEF_CHANGED |
| 22 |
alter table t1 add unique(b); |
| 23 |
|
| 24 |
set global debug=''; |
| 25 |
|
| 26 |
drop table t1; |