mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			489 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			489 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
source include/master-slave.inc;
 | 
						|
create table t1 (a int);
 | 
						|
create table t2 (a int);
 | 
						|
disable_query_log;
 | 
						|
SET @query="INSERT INTO t2 SELECT * FROM t1 WHERE a REGEXP \"0\"";
 | 
						|
let $1 = 2000;
 | 
						|
while ($1)
 | 
						|
{
 | 
						|
  eval SET @query=concat(@query, " OR  a REGEXP '$1'");
 | 
						|
  dec $1;
 | 
						|
}
 | 
						|
let $1=`select @query`;
 | 
						|
eval $1;
 | 
						|
enable_query_log;
 | 
						|
# I have seen the slave crash either now or at shutdown
 | 
						|
sync_slave_with_master;
 | 
						|
connection master;
 | 
						|
drop table t1;
 | 
						|
drop table t2;
 | 
						|
sync_slave_with_master;
 | 
						|
 | 
						|
# End of 4.1 tests
 |