mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 01:04:19 +01:00
2e814d4702
Contains also MDEV-10547: Test multi_update_innodb fails with InnoDB 5.7 The failure happened because 5.7 has changed the signature of the bool handler::primary_key_is_clustered() const virtual function ("const" was added). InnoDB was using the old signature which caused the function not to be used. MDEV-10550: Parallel replication lock waits/deadlock handling does not work with InnoDB 5.7 Fixed mutexing problem on lock_trx_handle_wait. Note that rpl_parallel and rpl_optimistic_parallel tests still fail. MDEV-10156 : Group commit tests fail on 10.2 InnoDB (branch bb-10.2-jan) Reason: incorrect merge MDEV-10550: Parallel replication can't sync with master in InnoDB 5.7 (branch bb-10.2-jan) Reason: incorrect merge
120 lines
2.5 KiB
Text
120 lines
2.5 KiB
Text
SET GLOBAL tx_isolation='REPEATABLE-READ';
|
|
SET GLOBAL innodb_file_per_table=on;
|
|
CREATE TABLE bug56680(
|
|
a INT AUTO_INCREMENT PRIMARY KEY,
|
|
b CHAR(1),
|
|
c INT,
|
|
INDEX(b))
|
|
ENGINE=InnoDB STATS_PERSISTENT=0;
|
|
INSERT INTO bug56680 VALUES(0,'x',1);
|
|
BEGIN;
|
|
SELECT b FROM bug56680;
|
|
b
|
|
x
|
|
connect con1,localhost,root,,;
|
|
connection con1;
|
|
BEGIN;
|
|
UPDATE bug56680 SET b='X';
|
|
connection default;
|
|
SELECT b FROM bug56680;
|
|
b
|
|
x
|
|
SELECT * FROM bug56680;
|
|
a b c
|
|
1 x 1
|
|
connection con1;
|
|
ROLLBACK;
|
|
disconnect con1;
|
|
connection default;
|
|
SELECT b FROM bug56680;
|
|
b
|
|
x
|
|
SET GLOBAL tx_isolation='READ-UNCOMMITTED';
|
|
INSERT INTO bug56680 SELECT 0,b,c FROM bug56680;
|
|
INSERT INTO bug56680 SELECT 0,b,c FROM bug56680;
|
|
INSERT INTO bug56680 SELECT 0,b,c FROM bug56680;
|
|
INSERT INTO bug56680 SELECT 0,b,c FROM bug56680;
|
|
INSERT INTO bug56680 SELECT 0,b,c FROM bug56680;
|
|
INSERT INTO bug56680 SELECT 0,b,c FROM bug56680;
|
|
INSERT INTO bug56680 SELECT 0,b,c FROM bug56680;
|
|
INSERT INTO bug56680 SELECT 0,b,c FROM bug56680;
|
|
INSERT INTO bug56680 SELECT 0,b,c FROM bug56680;
|
|
INSERT INTO bug56680 SELECT 0,b,c FROM bug56680;
|
|
INSERT INTO bug56680 SELECT 0,b,c FROM bug56680;
|
|
BEGIN;
|
|
SELECT b FROM bug56680 LIMIT 2;
|
|
b
|
|
x
|
|
x
|
|
connect con1,localhost,root,,;
|
|
connection con1;
|
|
BEGIN;
|
|
DELETE FROM bug56680 WHERE a=1;
|
|
INSERT INTO bug56680 VALUES(1,'X',1);
|
|
SELECT b FROM bug56680 LIMIT 3;
|
|
b
|
|
X
|
|
x
|
|
x
|
|
connection default;
|
|
SELECT b FROM bug56680 LIMIT 2;
|
|
b
|
|
x
|
|
x
|
|
CHECK TABLE bug56680;
|
|
Table Op Msg_type Msg_text
|
|
test.bug56680 check status OK
|
|
connection con1;
|
|
ROLLBACK;
|
|
SELECT b FROM bug56680 LIMIT 2;
|
|
b
|
|
x
|
|
x
|
|
CHECK TABLE bug56680;
|
|
Table Op Msg_type Msg_text
|
|
test.bug56680 check status OK
|
|
connection default;
|
|
disconnect con1;
|
|
SELECT b FROM bug56680 LIMIT 2;
|
|
b
|
|
x
|
|
x
|
|
CREATE TABLE bug56680_2(
|
|
a INT AUTO_INCREMENT PRIMARY KEY,
|
|
b VARCHAR(2) CHARSET latin1 COLLATE latin1_german2_ci,
|
|
c INT,
|
|
INDEX(b))
|
|
ENGINE=InnoDB STATS_PERSISTENT=0;
|
|
INSERT INTO bug56680_2 SELECT 0,_latin1 0xdf,c FROM bug56680;
|
|
BEGIN;
|
|
SELECT HEX(b) FROM bug56680_2 LIMIT 2;
|
|
HEX(b)
|
|
DF
|
|
DF
|
|
DELETE FROM bug56680_2 WHERE a=1;
|
|
INSERT INTO bug56680_2 VALUES(1,'SS',1);
|
|
SELECT HEX(b) FROM bug56680_2 LIMIT 3;
|
|
HEX(b)
|
|
5353
|
|
DF
|
|
DF
|
|
CHECK TABLE bug56680_2;
|
|
Table Op Msg_type Msg_text
|
|
test.bug56680_2 check status OK
|
|
ALTER TABLE bug56680_2 ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1;
|
|
SELECT HEX(b) FROM bug56680_2 LIMIT 2;
|
|
HEX(b)
|
|
5353
|
|
DF
|
|
DELETE FROM bug56680_2 WHERE a=1;
|
|
INSERT INTO bug56680_2 VALUES(1,_latin1 0xdf,1);
|
|
SELECT HEX(b) FROM bug56680_2 LIMIT 3;
|
|
HEX(b)
|
|
DF
|
|
DF
|
|
DF
|
|
CHECK TABLE bug56680_2;
|
|
Table Op Msg_type Msg_text
|
|
test.bug56680_2 check status OK
|
|
DROP TABLE bug56680_2;
|
|
DROP TABLE bug56680;
|