mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			268 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			268 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
#
 | 
						|
# Bug #56716 InnoDB locks a record gap without locking the table
 | 
						|
#
 | 
						|
-- source include/have_innodb.inc
 | 
						|
 | 
						|
CREATE TABLE bug56716 (a INT PRIMARY KEY,b INT,c INT,INDEX(b)) ENGINE=InnoDB;
 | 
						|
 | 
						|
SELECT * FROM bug56716 WHERE b<=42 ORDER BY b DESC FOR UPDATE;
 | 
						|
 | 
						|
DROP TABLE bug56716;
 |