mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 15:50:51 +03:00 
			
		
		
		
	Problem was that in XA prepared state we should still be able to release a savepoint, but assertions were too strict.
		
			
				
	
	
		
			18 lines
		
	
	
		
			326 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			326 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| --source include/have_innodb.inc
 | |
| 
 | |
| --disable_abort_on_error
 | |
| xa rollback 'xid2';
 | |
| drop table if exists t1;
 | |
| create table t1(a int)engine=innodb;
 | |
| rollback;
 | |
| xa start 'xid2';
 | |
| insert into `t1` values (1);
 | |
| savepoint `sv1`;
 | |
| xa end 'xid2';
 | |
| start transaction;
 | |
| xa prepare 'xid2';
 | |
| release savepoint `sv1`;
 | |
| xa commit 'xid2';
 | |
| drop table t1;
 | |
| 
 |