@@ -2,9 +2,9 @@ SET @@default_storage_engine = 'InnoDB';
22SHOW VARIABLES LIKE 'default_storage_engine';
33Variable_name Value
44default_storage_engine InnoDB
5- SHOW VARIABLES LIKE 'tx_isolation ';
5+ SHOW VARIABLES LIKE 'transaction_isolation ';
66Variable_name Value
7- tx_isolation REPEATABLE-READ
7+ transaction_isolation REPEATABLE-READ
88CREATE TABLE statistics (
99tx_errors INTEGER NOT NULL
1010);
@@ -34,18 +34,18 @@ PRIMARY KEY (`pk`)
3434SHOW CREATE TABLE t1;
3535Table Create Table
3636t1 CREATE TABLE `t1` (
37- `pk` int(11) NOT NULL AUTO_INCREMENT,
38- `id` int(11) NOT NULL,
39- `int1` int(11) DEFAULT NULL,
40- `int1_key` int(11) DEFAULT NULL,
41- `int1_unique` int(11) DEFAULT NULL,
42- `int2` int(11) DEFAULT NULL,
43- `int2_key` int(11) DEFAULT NULL,
44- `int2_unique` int(11) DEFAULT NULL,
37+ `pk` int NOT NULL AUTO_INCREMENT,
38+ `id` int NOT NULL,
39+ `int1` int DEFAULT NULL,
40+ `int1_key` int DEFAULT NULL,
41+ `int1_unique` int DEFAULT NULL,
42+ `int2` int DEFAULT NULL,
43+ `int2_key` int DEFAULT NULL,
44+ `int2_unique` int DEFAULT NULL,
4545 `for_update` tinyint(1) DEFAULT '0',
46- `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ,
47- `connection_id` int(11) DEFAULT NULL,
48- `thread_id` int(11) DEFAULT '0',
46+ `timestamp` timestamp NULL DEFAULT NULL ,
47+ `connection_id` int DEFAULT NULL,
48+ `thread_id` int DEFAULT '0',
4949 `is_uncommitted` tinyint(1) DEFAULT '0',
5050 `is_consistent` tinyint(1) DEFAULT '0',
5151 PRIMARY KEY (`pk`),
@@ -54,21 +54,21 @@ t1 CREATE TABLE `t1` (
5454 KEY `id` (`id`),
5555 KEY `int1_key` (`int1_key`),
5656 KEY `int2_key` (`int2_key`)
57- ) ENGINE=InnoDB DEFAULT CHARSET=latin1
58- CREATE PROCEDURE insertRows(rows INT)
57+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
58+ CREATE PROCEDURE insertRows(num_rows INT)
5959BEGIN
6060SET @n = 1;
6161REPEAT
62- INSERT INTO t1 (`id`, `int1`, `int1_key`, `int1_unique`,
62+ INSERT INTO t1 (`id`, `int1`, `int1_key`, `int1_unique`,
6363`int2`, `int2_key`, `int2_unique`,
64- `for_update`, `connection_id`, `thread_id`,
65- `is_uncommitted`, `is_consistent`)
64+ `for_update`, `connection_id`, `thread_id`,
65+ `is_uncommitted`, `is_consistent`)
6666VALUES (0, 1000, 1000, @n,
6767-1000, -1000, -@n,
68- 0, CONNECTION_ID(), 0,
68+ 0, CONNECTION_ID(), 0,
69690, 1);
7070SET @n = @n + 1;
71- UNTIL @n > rows
71+ UNTIL @n > num_rows
7272END REPEAT;
7373END;
7474//
0 commit comments