mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 15:50:51 +03:00 
			
		
		
		
	Adjust full test suite to work with GTID. Huge patch, mainly due to having to update .result file for all SHOW BINLOG EVENTS and mysqlbinlog outputs, where the new GTID events pop up. Everything was painstakingly checked to be still correct and valid .result file updates.
		
			
				
	
	
		
			33 lines
		
	
	
		
			927 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			927 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB;
 | |
| SET binlog_format= mixed;
 | |
| RESET MASTER;
 | |
| XA START 'xatest';
 | |
| INSERT INTO t1 VALUES (1);
 | |
| XA END 'xatest';
 | |
| XA PREPARE 'xatest';
 | |
| XA COMMIT 'xatest';
 | |
| XA START 'xatest';
 | |
| INSERT INTO t1 VALUES (2);
 | |
| XA END 'xatest';
 | |
| XA COMMIT 'xatest' ONE PHASE;
 | |
| BEGIN;
 | |
| INSERT INTO t1 VALUES (3);
 | |
| COMMIT;
 | |
| SELECT * FROM t1 ORDER BY a;
 | |
| a
 | |
| 1
 | |
| 2
 | |
| 3
 | |
| SHOW BINLOG EVENTS LIMIT 3,9;
 | |
| Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 | |
| master-bin.000001	#	Gtid	1	#	BEGIN GTID #-#-#
 | |
| master-bin.000001	#	Query	1	#	use `test`; INSERT INTO t1 VALUES (1)
 | |
| master-bin.000001	#	Query	1	#	COMMIT
 | |
| master-bin.000001	#	Gtid	1	#	BEGIN GTID #-#-#
 | |
| master-bin.000001	#	Query	1	#	use `test`; INSERT INTO t1 VALUES (2)
 | |
| master-bin.000001	#	Query	1	#	COMMIT
 | |
| master-bin.000001	#	Gtid	1	#	BEGIN GTID #-#-#
 | |
| master-bin.000001	#	Query	1	#	use `test`; INSERT INTO t1 VALUES (3)
 | |
| master-bin.000001	#	Xid	1	#	COMMIT /* xid=XX */
 | |
| DROP TABLE t1;
 |