mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Adjust the imported MySQL 5.6 tests for MariaDB
FIXME: MDEV-13668 InnoDB unnecessarily rebuilds table FIXME: MDEV-13671 InnoDB should use case-insensitive column name comparisons like the rest of the server FIXME: MDEV-13640 / Properly fix MDEV-9469 'Incorrect key file' on ALTER TABLE FIXME: investigate result difference in innodb.innodb-alter-autoinc and ensure that MariaDB does the right thing with auto_increment_increment and auto_increment_offset, for both ALGORITHM=INPLACE and ALGORITHM=COPY (Oracle MySQL behaviour differs between those two).
This commit is contained in:
@ -15,10 +15,11 @@ CREATE TABLE t1(c1 INT NOT NULL, c2 INT, PRIMARY KEY(c1)) Engine=InnoDB;
|
||||
SHOW CREATE TABLE t1;
|
||||
INSERT INTO t1 VALUES (1,1),(2,2),(3,3),(4,4),(5,5);
|
||||
|
||||
SET SESSION DEBUG='+d,ib_build_indexes_too_many_concurrent_trxs, ib_rename_indexes_too_many_concurrent_trxs, ib_drop_index_too_many_concurrent_trxs';
|
||||
SET @saved_debug_dbug = @@SESSION.debug_dbug;
|
||||
SET DEBUG_DBUG='+d,ib_build_indexes_too_many_concurrent_trxs, ib_rename_indexes_too_many_concurrent_trxs, ib_drop_index_too_many_concurrent_trxs';
|
||||
--error ER_TOO_MANY_CONCURRENT_TRXS
|
||||
ALTER TABLE t1 ADD UNIQUE INDEX(c2);
|
||||
SET SESSION DEBUG=DEFAULT;
|
||||
SET DEBUG_DBUG = @saved_debug_dbug;
|
||||
|
||||
SHOW CREATE TABLE t1;
|
||||
DROP TABLE t1;
|
||||
@ -29,20 +30,20 @@ DROP TABLE t1;
|
||||
CREATE TABLE bug13861218 (c1 INT NOT NULL, c2 INT NOT NULL, INDEX(c2))
|
||||
ENGINE=InnoDB;
|
||||
INSERT INTO bug13861218 VALUES (8, 0), (4, 0), (0, 0);
|
||||
SET DEBUG='+d,ib_row_merge_buf_add_two';
|
||||
SET DEBUG_DBUG = '+d,ib_row_merge_buf_add_two';
|
||||
# Force creation of a PRIMARY KEY on c1 to see what happens on the index(c2).
|
||||
# No crash here, because n_uniq for c2 includes the clustered index fields
|
||||
CREATE UNIQUE INDEX ui ON bug13861218(c1);
|
||||
SET DEBUG='-d,ib_row_merge_buf_add_two';
|
||||
SET DEBUG_DBUG = @saved_debug_dbug;
|
||||
DROP TABLE bug13861218;
|
||||
|
||||
CREATE TABLE bug13861218 (c1 INT NOT NULL, c2 INT UNIQUE) ENGINE=InnoDB;
|
||||
INSERT INTO bug13861218 VALUES (8, NULL), (4, NULL), (0, NULL);
|
||||
SET DEBUG='+d,ib_row_merge_buf_add_two';
|
||||
SET DEBUG_DBUG = '+d,ib_row_merge_buf_add_two';
|
||||
# Force creation of a PRIMARY KEY on c1 to see what happens on the index(c2).
|
||||
# assertion failure: ut_ad(cmp_dtuple_rec(dtuple, rec, rec_offsets) > 0)
|
||||
CREATE UNIQUE INDEX ui ON bug13861218(c1);
|
||||
SET DEBUG='-d,ib_row_merge_buf_add_two';
|
||||
SET DEBUG_DBUG = @saved_debug_dbug;
|
||||
DROP TABLE bug13861218;
|
||||
|
||||
eval set global innodb_file_per_table=$per_table;
|
||||
@ -76,8 +77,8 @@ insert into t1 select NULL,'aaaaaaa','bbbbbbb','ccccccc' from t480;
|
||||
insert into t1 select NULL,'aaaaaaaa','bbbbbbbb','cccccccc' from t480;
|
||||
select count(*) from t1;
|
||||
|
||||
SET DEBUG = '+d,innobase_tmpfile_creation_failure';
|
||||
SET DEBUG_DBUG = '+d,innobase_tmpfile_creation_failure';
|
||||
--error ER_OUT_OF_RESOURCES
|
||||
alter table t1 force, algorithm=inplace;
|
||||
SET DEBUG = '-d,innobase_tmpfile_creation_failure';
|
||||
SET DEBUG_DBUG = @saved_debug_dbug;
|
||||
drop table t1, t480;
|
||||
|
Reference in New Issue
Block a user