30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
# Emulate failure to start the NDB schema transaction
|
|
# when creating a table. Note that no NDB error really occurred
|
|
# and it's thus normal to have error 0.
|
|
SET SESSION debug="+d,ndb_schema_trans_start_fail";
|
|
CREATE TABLE t1(a int primary key) engine = NDB;
|
|
ERROR HY000: Can't create table 't1'
|
|
SHOW WARNINGS;
|
|
Level Code Message
|
|
Warning 1296 Got error 0 'No error' from NDB
|
|
Warning 1296 Failed to start NDB schema transaction
|
|
Error 1005 Can't create table 't1'
|
|
SET SESSION debug="-d,ndb_schema_trans_start_fail";
|
|
# Check that table does not exist
|
|
SELECT * FROM t1;
|
|
ERROR 42S02: Table 'test.t1' doesn't exist
|
|
# Emulate failure to commit the NDB schema transaction
|
|
# when creating a table.
|
|
SET SESSION debug="+d,ndb_schema_trans_commit_fail";
|
|
CREATE TABLE t1(a int primary key) engine = NDB;
|
|
ERROR HY000: Can't create table 't1'
|
|
SHOW WARNINGS;
|
|
Level Code Message
|
|
Warning 1296 Got error 0 'No error' from NDB
|
|
Warning 1296 Failed to commit NDB schema transaction
|
|
Error 1005 Can't create table 't1'
|
|
SET SESSION debug="-d,ndb_schema_trans_commit_fail";
|
|
# Check that table does not exist
|
|
SELECT * FROM t1;
|
|
ERROR 42S02: Table 'test.t1' doesn't exist
|