summaryrefslogtreecommitdiff
path: root/mysql-test/suite/innodb/t/innodb_bug56716.test
blob: 47fdac3e15095c7d1afe12b1f8b2fa1457ac64b8 (plain)
1
2
3
4
5
6
7
8
9
--source include/have_innodb.inc
#
# Bug #56716 InnoDB locks a record gap without locking the table
#
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;