~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

Viewing changes to mysql-test/suite/innodb_plugin/t/innodb_bug56716.test

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Bug #56716 InnoDB locks a record gap without locking the table
 
3
#
 
4
-- source include/have_innodb_plugin.inc
 
5
 
 
6
CREATE TABLE bug56716 (a INT PRIMARY KEY,b INT,c INT,INDEX(b)) ENGINE=InnoDB;
 
7
 
 
8
SELECT * FROM bug56716 WHERE b<=42 ORDER BY b DESC FOR UPDATE;
 
9
 
 
10
DROP TABLE bug56716;