mirror of
https://github.com/MariaDB/server.git
synced 2025-09-03 20:43:11 +03:00

------------------------------------------------------------------------ r6921 | mmakela | 2010-03-31 14:33:04 +0300 (Wed, 31 Mar 2010) | 2 lines Changed paths: M /branches/5.1/mysql-test/innodb_bug51920.result M /branches/5.1/mysql-test/innodb_bug51920.test branches/5.1: innodb_bug51920.test: Make the test quicker and more deterministic. Suggested by Vasil Dimov. ------------------------------------------------------------------------
14 lines
332 B
Plaintext
14 lines
332 B
Plaintext
CREATE TABLE bug51920 (i INT) ENGINE=InnoDB;
|
|
INSERT INTO bug51920 VALUES (1);
|
|
BEGIN;
|
|
SELECT * FROM bug51920 FOR UPDATE;
|
|
i
|
|
1
|
|
UPDATE bug51920 SET i=2;
|
|
SELECT ID FROM INFORMATION_SCHEMA.PROCESSLIST
|
|
WHERE INFO="UPDATE bug51920 SET i=2"
|
|
INTO @thread_id;
|
|
KILL @thread_id;
|
|
ERROR 70100: Query execution was interrupted
|
|
DROP TABLE bug51920;
|