mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 02:46:29 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			452 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			452 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| include/master-slave.inc
 | |
| [connection master]
 | |
| connection master;
 | |
| create table t1 (n int not null primary key);
 | |
| insert into t1 values (1);
 | |
| create table t2 (n int);
 | |
| insert into t2 values (1);
 | |
| insert ignore into t1 select * from t2;
 | |
| Warnings:
 | |
| Warning	1062	Duplicate entry '1' for key 'PRIMARY'
 | |
| insert into t1 values (2);
 | |
| connection slave;
 | |
| connection slave;
 | |
| select * from t1;
 | |
| n
 | |
| 1
 | |
| 2
 | |
| connection master;
 | |
| drop table t1,t2;
 | |
| connection slave;
 | |
| include/rpl_end.inc
 | 
