Debian Codegraph @

mysql-test/suite/ndb_ddl/open_table_fail.test

raw
1 -- source include/have_ndb.inc
2 -- source include/have_debug.inc
3
4 --echo #
5 --echo # Test failure to acquire NDB_SHARE while opening table. This is an
6 --echo # unusual error condition and can thus be reproduced only with
7 --echo # error injection.
8 --echo #
9 CREATE TABLE t1(
10 id INT PRIMARY KEY,
11 val INT
12 ) ENGINE=ndbcluster;
13
14 set @save_debug = @@session.debug;
15 # Force error to occur while opening table
16 SET SESSION debug="+d,ndb_share_acquire_fail1";
17 --error ER_GET_ERRMSG
18 SELECT * FROM t1;
19 SHOW WARNINGS;
20 SET SESSION debug=@save_debug;
21
22 --echo # Cleanup and remove the table
23 DROP TABLE t1;