mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			457 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			457 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 GLOBAL debug='d,injecting_fault_writing';
 | 
						|
--echo $query;
 | 
						|
--replace_regex /(errno: .*)/(errno: #)/
 | 
						|
--error ER_ERROR_ON_WRITE
 | 
						|
--eval $query
 | 
						|
SET GLOBAL debug='';
 |