diff options
Diffstat (limited to 'mysql-test/suite/innodb/r/gap_locks.result')
-rw-r--r-- | mysql-test/suite/innodb/r/gap_locks.result | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/mysql-test/suite/innodb/r/gap_locks.result b/mysql-test/suite/innodb/r/gap_locks.result new file mode 100644 index 00000000..cd60b1fa --- /dev/null +++ b/mysql-test/suite/innodb/r/gap_locks.result @@ -0,0 +1,35 @@ +CREATE TABLE t1(a INT PRIMARY KEY, b VARCHAR(40), c INT, INDEX(b,c)) +ENGINE=InnoDB; +INSERT INTO t1 VALUES (1,'1',1),(2,'2',1); +SET @save_locks= @@GLOBAL.innodb_status_output_locks; +SET GLOBAL INNODB_STATUS_OUTPUT_LOCKS = 'ON'; +SET TRANSACTION ISOLATION LEVEL SERIALIZABLE; +BEGIN; +DELETE FROM t1 WHERE b='2' AND c=2; +SHOW ENGINE INNODB STATUS; +Type Name Status +InnoDB 2 lock struct(s), 1 row lock(s) +ROLLBACK; +SET TRANSACTION ISOLATION LEVEL REPEATABLE READ; +BEGIN; +DELETE FROM t1 WHERE b='2' AND c=2; +SHOW ENGINE INNODB STATUS; +Type Name Status +InnoDB 2 lock struct(s), 1 row lock(s) +ROLLBACK; +SET TRANSACTION ISOLATION LEVEL READ COMMITTED; +BEGIN; +DELETE FROM t1 WHERE b='2' AND c=2; +SHOW ENGINE INNODB STATUS; +Type Name Status +InnoDB 1 lock struct(s), 0 row lock(s) +ROLLBACK; +SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; +BEGIN; +DELETE FROM t1 WHERE b='2' AND c=2; +SHOW ENGINE INNODB STATUS; +Type Name Status +InnoDB 1 lock struct(s), 0 row lock(s) +ROLLBACK; +SET GLOBAL INNODB_STATUS_OUTPUT_LOCKS = @save_locks; +DROP TABLE t1; |