Debian Codegraph @

mysql-test/suite/ndb/r/ndb_fk_abort.result

raw
1 drop table if exists t1,t2;
2 create table t1 (
3 a int not null,
4 b int not null,
5 primary key using hash (a),
6 unique key using hash (b)
7 ) engine ndb;
8 create table t2 (
9 a int not null,
10 b int not null,
11 primary key using hash (a),
12 key (b)
13 ) engine ndb comment="NDB_TABLE=FULLY_REPLICATED=1";
14 alter table t2 add constraint fk1 foreign key (b) references t1(a);
15 insert into t1 values (1,1);
16 insert into t2 values (1,1);
17 delete from t2 where b = 1;
18 ERROR HY000: Got temporary error 1218 'Send Buffers overloaded in NDB kernel' from NDBCLUSTER
19 insert into t2 values (2,1);
20 ERROR HY000: Got temporary error 1218 'Send Buffers overloaded in NDB kernel' from NDBCLUSTER
21 drop table t2;
22 drop table t1;