mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 03:21:53 +01:00
15 lines
439 B
Text
15 lines
439 B
Text
|
CREATE TABLE t1 (a INT) ENGINE = InnoDB PARTITION BY HASH(a);
|
||
|
INSERT INTO t1 VALUES (0), (1), (2);
|
||
|
START TRANSACTION;
|
||
|
UPDATE t1 SET a = 5 WHERE a = 1;
|
||
|
# Connection con1
|
||
|
# InnoDB lock timeout and monitor thread runs every 15 seconds
|
||
|
SET innodb_lock_wait_timeout = 20;
|
||
|
START TRANSACTION;
|
||
|
UPDATE t1 SET a = 3 WHERE a = 1;
|
||
|
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
|
||
|
COMMIT;
|
||
|
# Connection default
|
||
|
COMMIT;
|
||
|
DROP TABLE t1;
|