mysql5/mysql-5.7.27/mysql-test/suite/ndb/r/ndb_ddl_open_trans.result

51 lines
1.4 KiB
Plaintext

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_dbg_check_shares=1;
set global ndb_dbg_check_shares=1;
create table t1 ( a int primary key) engine = ndb;
begin;
insert into t1 values(1);
alter table t1 algorithm=inplace, add column b int column_format dynamic;
commit;
drop table t1;
set global ndb_dbg_check_shares=1;
set global ndb_dbg_check_shares=1;
create table t1 ( a int primary key) engine = ndb;
begin;
insert into t1 values(1);
alter table t1 algorithm=copy, add column b int column_format dynamic;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
commit;
drop table t1;
set global ndb_dbg_check_shares=1;
set global ndb_dbg_check_shares=1;
create table t1 ( a int primary key, b int) engine = ndb;
begin;
insert into t1 values(1, 1);
create index ind_b on t1(b) algorithm=inplace;
commit;
drop table t1;
set global ndb_dbg_check_shares=1;
set global ndb_dbg_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_dbg_check_shares=1;
set global ndb_dbg_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_dbg_check_shares=1;
set global ndb_dbg_check_shares=1;