4 # binlog_inject_error.inc
8 # Inject binlog write error when running the query, verifies that the
9 # query is ended with the proper error (ER_ERROR_ON_WRITE).
13 # let query= 'CREATE TABLE t1 (a INT)';
14 # source include/binlog_inject_error.inc;
18 SET @old_debug = @@global.debug;
19 SET GLOBAL debug=CONCAT(IF(LENGTH(@old_debug) > 9, CONCAT(@old_debug,
':'),
''),
'd,injecting_fault_writing');
22 --replace_regex /(errno: .*)/(errno: #)/
23 --error ER_ERROR_ON_WRITE
26 SET GLOBAL debug=@old_debug;