create table t1 ( a int ) engine = ndb; begin; insert into t1 values(1); alter table t1 rename t2; commit; drop table t2; set global ndb_check_shares=1; set global ndb_check_shares=1; create table t1 ( a int primary key) engine = ndb; begin; insert into t1 values(1); alter online table t1 add column b int column_format dynamic; commit; drop table t1; set global ndb_check_shares=1; set global ndb_check_shares=1; create table t1 ( a int primary key) engine = ndb; begin; insert into t1 values(1); alter offline table t1 add column b int column_format dynamic; ERROR HY000: Lock wait timeout exceeded; try restarting transaction commit; drop table t1; set global ndb_check_shares=1; set global ndb_check_shares=1; create table t1 ( a int primary key, b int) engine = ndb; begin; insert into t1 values(1, 1); create online index ind_b on t1(b); commit; drop table t1; set global ndb_check_shares=1; set global ndb_check_shares=1; create table t1 ( a int primary key, b int, index ind_b (b)) engine = ndb; begin; insert into t1 values(1, 1); drop index ind_b on t1; commit; drop table t1; set global ndb_check_shares=1; set global ndb_check_shares=1; create database testdb; create table testdb.t1 (a int) engine = ndb; begin; insert into testdb.t1 values(1); alter database testdb charset = latin1; commit; drop database testdb; set global ndb_check_shares=1; set global ndb_check_shares=1;