mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
MDEV-28950: Add a test case
After reverting commit commit 39f45f6f89
all combinations of this test would crash the server.
This commit is contained in:
@@ -595,3 +595,16 @@ CREATE TABLE t1(c text, PRIMARY KEY (c(293)))
|
||||
ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1 CHARSET=ASCII;
|
||||
INSERT INTO t1 VALUES(REPEAT('A',512)),(REPEAT('B',512));
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# MDEV-28950 Assertion `*err == DB_SUCCESS' in btr_page_split_and_insert
|
||||
#
|
||||
CREATE TABLE t1(c CHAR(255) NOT NULL) ENGINE=InnoDB;
|
||||
INSERT INTO t1 VALUES ('');
|
||||
ALTER TABLE t1 ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1;
|
||||
INSERT INTO t1 VALUES (''),(''),('');
|
||||
SET @save_innodb_compression_level= @@innodb_compression_level;
|
||||
SET GLOBAL innodb_compression_level=0;
|
||||
INSERT INTO t1 VALUES ('');
|
||||
SET GLOBAL innodb_compression_level= @save_innodb_compression_level;
|
||||
DROP TABLE t1;
|
||||
# End of 10.6 tests
|
||||
|
@@ -874,3 +874,18 @@ ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1 CHARSET=ASCII;
|
||||
--enable_warnings
|
||||
INSERT INTO t1 VALUES(REPEAT('A',512)),(REPEAT('B',512));
|
||||
DROP TABLE t1;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-28950 Assertion `*err == DB_SUCCESS' in btr_page_split_and_insert
|
||||
--echo #
|
||||
CREATE TABLE t1(c CHAR(255) NOT NULL) ENGINE=InnoDB;
|
||||
INSERT INTO t1 VALUES ('');
|
||||
ALTER TABLE t1 ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1;
|
||||
INSERT INTO t1 VALUES (''),(''),('');
|
||||
SET @save_innodb_compression_level= @@innodb_compression_level;
|
||||
SET GLOBAL innodb_compression_level=0;
|
||||
INSERT INTO t1 VALUES ('');
|
||||
SET GLOBAL innodb_compression_level= @save_innodb_compression_level;
|
||||
DROP TABLE t1;
|
||||
|
||||
--echo # End of 10.6 tests
|
||||
|
Reference in New Issue
Block a user