23 lines
511 B
Plaintext
23 lines
511 B
Plaintext
--source include/have_debug.inc
|
|
|
|
CREATE TABLESPACE ts1 ADD DATAFILE 'ts1.ibd';
|
|
|
|
SET GLOBAL DEBUG = '+d, sdi_set_failure';
|
|
--error ER_SDI_OPERATION_FAILED
|
|
CREATE TABLE t1(a INT) TABLESPACE `ts1`;
|
|
SET GLOBAL DEBUG = '-d, sdi_set_failure';
|
|
|
|
CREATE TABLE t1(a INT) TABLESPACE `ts1`;
|
|
|
|
INSERT INTO t1 VALUES (1), (2), (3);
|
|
|
|
SET GLOBAL DEBUG = '+d, sdi_delete_failure';
|
|
--error ER_SDI_OPERATION_FAILED
|
|
DROP TABLE t1;
|
|
SET GLOBAL DEBUG = '-d, sdi_delete_failure';
|
|
|
|
SELECT * FROM t1;
|
|
|
|
DROP TABLE t1;
|
|
DROP TABLESPACE ts1;
|