mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
22 lines
518 B
PHP
22 lines
518 B
PHP
#
|
|
# === Name
|
|
#
|
|
# binlog_inject_error.inc
|
|
#
|
|
# === Description
|
|
#
|
|
# Inject binlog write error when running the query, verifies that the
|
|
# query is ended with the proper error (ER_ERROR_ON_WRITE).
|
|
#
|
|
# === Usage
|
|
#
|
|
# let query= 'CREATE TABLE t1 (a INT)';
|
|
# source include/binlog_inject_error.inc;
|
|
#
|
|
set @saved_dbug = @@global.debug_dbug;
|
|
SET GLOBAL debug_dbug='d,injecting_fault_writing';
|
|
--echo $query;
|
|
--replace_regex /(errno: .*)/(errno: #)/
|
|
--error ER_ERROR_ON_WRITE
|
|
--eval $query
|
|
set @@global.debug_dbug = @saved_dbug;
|