Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Olaf van der Spek
mariadb-10.1
Commits
255c2398
Commit
255c2398
authored
Nov 16, 2017
by
Ondrej Sury
Browse files
New upstream version 10.1.29
parent
b662fa15
Changes
1000
Expand all
Hide whitespace changes
Inline
Side-by-side
Too many changes to show.
To preserve performance only
20 of 1000+
files are displayed.
Plain diff
Email patch
mysql-test/suite/innodb/r/innodb-alter-table.result
View file @
255c2398
...
...
@@ -185,3 +185,44 @@ ticket CREATE TABLE `ticket` (
KEY `org_id` (`org_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
DROP TABLE ticket;
CREATE TABLE t (
id bigint(20) unsigned NOT NULL auto_increment,
d date NOT NULL,
a bigint(20) unsigned NOT NULL,
b smallint(5) unsigned DEFAULT NULL,
PRIMARY KEY (id,d)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs STATS_SAMPLE_PAGES=2
PARTITION BY RANGE COLUMNS(d)
(
PARTITION p20170914 VALUES LESS THAN ('2017-09-15') ENGINE = InnoDB,
PARTITION p99991231 VALUES LESS THAN (MAXVALUE) ENGINE = InnoDB);
insert into t(d,a,b) values ('2017-09-15',rand()*10000,rand()*10);
insert into t(d,a,b) values ('2017-09-15',rand()*10000,rand()*10);
replace into t(d,a,b) select '2017-09-15',rand()*10000,rand()*10 from t t1, t t2, t t3, t t4;
select count(*) from t where d ='2017-09-15';
count(*)
18
ALTER TABLE t CHANGE b c smallint(5) unsigned , ADD KEY idx_d_a (d, a);
SHOW CREATE TABLE t;
Table Create Table
t CREATE TABLE `t` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`d` date NOT NULL,
`a` bigint(20) unsigned NOT NULL,
`c` smallint(5) unsigned DEFAULT NULL,
PRIMARY KEY (`id`,`d`),
KEY `idx_d_a` (`d`,`a`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs STATS_SAMPLE_PAGES=2
/*!50500 PARTITION BY RANGE COLUMNS(d)
(PARTITION p20170914 VALUES LESS THAN ('2017-09-15') ENGINE = InnoDB,
PARTITION p99991231 VALUES LESS THAN (MAXVALUE) ENGINE = InnoDB) */
analyze table t;
Table Op Msg_type Msg_text
test.t analyze status OK
select count(*) from t where d ='2017-09-15';
count(*)
18
select count(*) from t force index(primary) where d ='2017-09-15';
count(*)
18
DROP TABLE t;
mysql-test/suite/innodb/r/innodb-alter.result
View file @
255c2398
...
...
@@ -540,9 +540,6 @@ ERROR 42000: Key column 'c2' doesn't exist in table
ALTER TABLE t1n ADD INDEX(c2), CHANGE c2 c4 INT, ALGORITHM=COPY;
ERROR 42000: Key column 'c2' doesn't exist in table
ALTER TABLE t1n ADD INDEX(c4), CHANGE c2 c4 INT, ALGORITHM=INPLACE;
ERROR 0A000: ALGORITHM=INPLACE is not supported. Reason: InnoDB presently supports one FULLTEXT index creation at a time. Try ALGORITHM=COPY.
ALTER TABLE t1n CHANGE c2 c4 INT, LOCK=NONE;
ALTER TABLE t1n ADD INDEX(c4), LOCK=NONE;
SHOW CREATE TABLE t1n;
Table Create Table
t1n CREATE TABLE `t1n` (
...
...
@@ -559,9 +556,6 @@ ALTER TABLE t1n DROP INDEX c4;
ALTER TABLE t1n CHANGE c4 c1 INT, ADD INDEX(c1), ALGORITHM=INPLACE;
ERROR 42S21: Duplicate column name 'c1'
ALTER TABLE t1n CHANGE c4 c11 INT, ADD INDEX(c11), ALGORITHM=INPLACE;
ERROR 0A000: ALGORITHM=INPLACE is not supported. Reason: InnoDB presently supports one FULLTEXT index creation at a time. Try ALGORITHM=COPY.
ALTER TABLE t1n CHANGE c4 c11 INT, LOCK=NONE;
ALTER TABLE t1n ADD INDEX(c11), LOCK=NONE;
SHOW CREATE TABLE t1n;
Table Create Table
t1n CREATE TABLE `t1n` (
...
...
@@ -640,10 +634,11 @@ CHANGE foo_id FTS_DOC_ID BIGINT UNSIGNED NOT NULL;
ALTER TABLE t1o DROP INDEX ct, DROP INDEX FTS_DOC_ID_INDEX,
CHANGE FTS_DOC_ID foo_id BIGINT UNSIGNED NOT NULL;
ALTER TABLE t1o ADD UNIQUE INDEX FTS_DOC_ID_INDEX(foo_id);
call mtr.add_suppression("Error: no matching column for .FTS_DOC_ID. in index .ct.--temporary-- of table .test...t1o");
ALTER TABLE t1o CHANGE foo_id FTS_DOC_ID BIGINT UNSIGNED NOT NULL,
ADD FULLTEXT INDEX(ct);
ERROR HY000: Incorrect key file for table 't1o'; try to repair it
ALTER TABLE t1o CHANGE FTS_DOC_ID foo_id BIGINT UNSIGNED NOT NULL,
ALGORITHM=INPLACE;
ERROR 0A000: ALGORITHM=INPLACE is not supported. Reason: Cannot drop or rename FTS_DOC_ID. Try ALGORITHM=COPY.
DROP TABLE sys_indexes;
CREATE TABLE sys_indexes SELECT i.* FROM INFORMATION_SCHEMA.INNODB_SYS_INDEXES i
INNER JOIN sys_tables st ON i.TABLE_ID=st.TABLE_ID;
...
...
@@ -651,9 +646,16 @@ SELECT i.NAME,i.POS,i.MTYPE,i.PRTYPE,i.LEN
FROM INFORMATION_SCHEMA.INNODB_SYS_COLUMNS i
INNER JOIN sys_tables st ON i.TABLE_ID=st.TABLE_ID;
NAME POS MTYPE PRTYPE LEN
FTS_DOC_ID 0 6 1800 8
c2 1 6 1027 4
ct 2 5 524540 10
cu 3 5 524540 10
SELECT si.NAME,i.POS,i.NAME FROM INFORMATION_SCHEMA.INNODB_SYS_FIELDS i
INNER JOIN sys_indexes si ON i.INDEX_ID=si.INDEX_ID;
NAME POS NAME
PRIMARY 0 FTS_DOC_ID
FTS_DOC_ID_INDEX 0 FTS_DOC_ID
ct 0 ct
SELECT i.* FROM INFORMATION_SCHEMA.INNODB_SYS_FOREIGN_COLS i
INNER JOIN sys_foreign sf ON i.ID = sf.ID;
ID FOR_COL_NAME REF_COL_NAME POS
...
...
mysql-test/suite/innodb/r/innodb-get-fk.result
View file @
255c2398
...
...
@@ -40,6 +40,9 @@ crew_role_assigned CREATE TABLE `crew_role_assigned` (
CONSTRAINT `fk_crewRoleAssigned_crewId` FOREIGN KEY (`crew_id`) REFERENCES `crew` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `fk_crewRoleAssigned_pilotId` FOREIGN KEY (`crew_id`) REFERENCES `pilot` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='This is a comment about tables'
SET GLOBAL innodb_buffer_pool_load_now = ON;
SET GLOBAL innodb_buffer_pool_dump_now = ON;
SET GLOBAL innodb_buffer_pool_load_abort = ON;
ALTER TABLE `repro`.`crew_role_assigned` COMMENT = "This is a new comment about tables";
SHOW CREATE TABLE `repro`.`crew_role_assigned`;
Table Create Table
...
...
mysql-test/suite/innodb/r/innodb-page_compression_tables.result
View file @
255c2398
...
...
@@ -38,12 +38,11 @@ innodb_redundant CREATE TABLE `innodb_redundant` (
`b` char(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=REDUNDANT
alter table innodb_redundant page_compressed=1;
ERROR HY000:
Can't create table `test`.`#sql-temporary` (errno: 140 "Wrong create options")
ERROR HY000:
Table storage engine 'InnoDB' does not support the create option 'PAGE_COMPRESSED'
show warnings;
Level Code Message
Warning 140 InnoDB: PAGE_COMPRESSED table can't have ROW_TYPE=REDUNDANT
Error 1005 Can't create table `test`.`#sql-temporary` (errno: 140 "Wrong create options")
Warning 1030 Got error 140 "Wrong create options" from storage engine InnoDB
Error 1478 Table storage engine 'InnoDB' does not support the create option 'PAGE_COMPRESSED'
show create table innodb_redundant;
Table Create Table
innodb_redundant CREATE TABLE `innodb_redundant` (
...
...
mysql-test/suite/innodb/r/innodb-table-online.result
View file @
255c2398
...
...
@@ -3,6 +3,8 @@ call mtr.add_suppression("InnoDB: Error: table 'test/t1'");
call mtr.add_suppression("MySQL is trying to open a table handle but the .ibd file for");
SET @global_innodb_file_per_table_orig = @@global.innodb_file_per_table;
SET GLOBAL innodb_file_per_table = on;
SET @file_format = @@GLOBAL.innodb_file_format;
SET GLOBAL innodb_file_format = Barracuda;
CREATE TABLE t1 (c1 INT PRIMARY KEY, c2 INT NOT NULL, c3 CHAR(255) NOT NULL)
ENGINE = InnoDB;
INSERT INTO t1 VALUES (1,1,''), (2,2,''), (3,3,''), (4,4,''), (5,5,'');
...
...
@@ -203,7 +205,8 @@ t1 CREATE TABLE `t1` (
ALTER TABLE t1 ROW_FORMAT=REDUNDANT;
SET DEBUG_SYNC = 'row_log_table_apply1_before SIGNAL rebuilt2 WAIT_FOR dml2_done';
SET lock_wait_timeout = 10;
ALTER TABLE t1 ROW_FORMAT=COMPACT, ALGORITHM = INPLACE;
ALTER TABLE t1 ROW_FORMAT=COMPACT
PAGE_COMPRESSED = YES PAGE_COMPRESSION_LEVEL = 1, ALGORITHM = INPLACE;
# session default
INSERT INTO t1 SELECT 80 + c1, c2, c3 FROM t1;
INSERT INTO t1 SELECT 160 + c1, c2, c3 FROM t1;
...
...
@@ -438,5 +441,6 @@ SET DEBUG_SYNC = 'RESET';
SET GLOBAL innodb_monitor_disable = module_ddl;
DROP TABLE t1;
SET GLOBAL innodb_file_per_table = @global_innodb_file_per_table_orig;
SET GLOBAL innodb_file_format = @file_format;
SET GLOBAL innodb_monitor_enable = default;
SET GLOBAL innodb_monitor_disable = default;
mysql-test/suite/innodb/r/innodb-wl5522-debug.result
View file @
255c2398
call mtr.add_suppression("InnoDB: Page for tablespace .* ");
call mtr.add_suppression("InnoDB: Invalid FSP_SPACE_FLAGS=");
call mtr.add_suppression("InnoDB: Corruption: Block in space_id .* in file .* corrupted");
call mtr.add_suppression("InnoDB: Based on page type .*");
FLUSH TABLES;
SET GLOBAL innodb_file_per_table = 1;
DROP DATABASE IF EXISTS test_wl5522;
Warnings:
Note 1008 Can't drop database 'test_wl5522'; database doesn't exist
CREATE DATABASE test_wl5522;
SET SESSION debug_dbug="+d,ib_discard_before_commit_crash";
CREATE TABLE test_wl5522.t1 (c1 INT) ENGINE = InnoDB;
INSERT INTO test_wl5522.t1 VALUES(1),(2),(3);
SET SESSION debug_dbug="+d,ib_discard_before_commit_crash";
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
ERROR HY000: Lost connection to MySQL server during query
DROP TABLE test_wl5522.t1;
SET GLOBAL innodb_file_per_table = 1;
SELECT @@innodb_file_per_table;
@@innodb_file_per_table
1
SET SESSION debug_dbug="+d,ib_discard_after_commit_crash";
CREATE TABLE test_wl5522.t1 (c1 INT) ENGINE = InnoDB;
INSERT INTO test_wl5522.t1 VALUES(1),(2),(3);
SET SESSION debug_dbug="+d,ib_discard_after_commit_crash";
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
ERROR HY000: Lost connection to MySQL server during query
DROP TABLE test_wl5522.t1;
...
...
@@ -37,19 +26,18 @@ ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
SELECT COUNT(*) FROM test_wl5522.t1;
ERROR HY000: Tablespace has been discarded for table 't1'
restore: t1 .ibd and .cfg files
SET SESSION debug_dbug="+d,ib_import_before_commit_crash";
SELECT * FROM test_wl5522.t1;
ERROR HY000: Tablespace has been discarded for table 't1'
SET SESSION debug_dbug="+d,ib_import_before_commit_crash";
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
ERROR HY000: Lost connection to MySQL server during query
SET SESSION debug_dbug="+d,ib_import_before_checkpoint_crash";
SELECT COUNT(*) FROM test_wl5522.t1;
ERROR HY000: Tablespace has been discarded for table 't1'
SET SESSION debug_dbug="+d,ib_import_before_checkpoint_crash";
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
ERROR HY000: Lost connection to MySQL server during query
unlink: t1.ibd
unlink: t1.cfg
# Restart and reconnect to the server
DROP TABLE test_wl5522.t1;
SET GLOBAL innodb_file_per_table = 1;
SELECT @@innodb_file_per_table;
...
...
@@ -495,7 +483,7 @@ c4 VARCHAR(2048),
INDEX idx1(c2),
INDEX idx2(c3(512)),
INDEX idx3(c4(512))) Engine=InnoDB;
S
ET GLOBAL INNODB_PURGE_STOP_NOW=ON
;
S
TART TRANSACTION WITH CONSISTENT SNAPSHOT
;
SET GLOBAL innodb_disable_background_merge=ON;
SET GLOBAL innodb_monitor_reset = ibuf_merges;
SET GLOBAL innodb_monitor_reset = ibuf_merges_insert;
...
...
@@ -660,7 +648,7 @@ FROM information_schema.innodb_metrics
WHERE name = 'ibuf_merges_inserts' AND count > 0;
name
SET GLOBAL innodb_disable_background_merge=OFF;
SET GLOBAL INNODB_PURGE_RUN_NOW=ON
;
COMMIT
;
DROP TABLE test_wl5522.t1;
CREATE TABLE test_wl5522.t1 (
c1 BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
...
...
@@ -796,8 +784,8 @@ t1 CREATE TABLE `t1` (
) ENGINE=InnoDB AUTO_INCREMENT=185 DEFAULT CHARSET=latin1
DROP TABLE test_wl5522.t1;
CREATE TABLE test_wl5522.t1 (c1 INT, c2 VARCHAR(1024), c3 BLOB) ENGINE = Innodb;
INSERT INTO test_wl5522.t1 VALUES
(100, REPEAT('Karanbir', 899), REPEAT('Ajeeth',
1200
));
INSERT
IGNORE
INTO test_wl5522.t1 VALUES
(100, REPEAT('Karanbir', 899), REPEAT('Ajeeth',
2731
));
Warnings:
Warning 1265 Data truncated for column 'c2' at row 1
INSERT INTO test_wl5522.t1 SELECT * FROM test_wl5522.t1;
...
...
@@ -832,7 +820,7 @@ ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
SELECT COUNT(*) FROM test_wl5522.t1;
ERROR HY000: Tablespace has been discarded for table 't1'
restore: t1 .ibd and .cfg files
SET SESSION debug_dbug="+d,buf_page_i
s
_corrupt_failure";
SET SESSION debug_dbug="+d,buf_page_i
mport
_corrupt_failure";
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
ERROR HY000: Internal error: Cannot reset LSNs in table '"test_wl5522"."t1"' : Data structure corruption
SET SESSION debug_dbug=@saved_debug_dbug;
...
...
mysql-test/suite/innodb/r/innodb-wl5980-alter.result
View file @
255c2398
...
...
@@ -1010,9 +1010,6 @@ ERROR 42000: Key column 'c2' doesn't exist in table
ALTER TABLE t1n ADD INDEX(c2), CHANGE c2 c4 INT, ALGORITHM=COPY;
ERROR 42000: Key column 'c2' doesn't exist in table
ALTER TABLE t1n ADD INDEX(c4), CHANGE c2 c4 INT, ALGORITHM=INPLACE;
ERROR 0A000: ALGORITHM=INPLACE is not supported. Reason: InnoDB presently supports one FULLTEXT index creation at a time. Try ALGORITHM=COPY.
ALTER TABLE t1n CHANGE c2 c4 INT, LOCK=NONE;
ALTER TABLE t1n ADD INDEX(c4), LOCK=NONE;
### files in MYSQL_DATA_DIR/test
FTS_AUX_INDEX_1.ibd
FTS_AUX_INDEX_2.ibd
...
...
@@ -1113,9 +1110,6 @@ tt.ibd
ALTER TABLE t1n CHANGE c4 c1 INT, ADD INDEX(c1), ALGORITHM=INPLACE;
ERROR 42S21: Duplicate column name 'c1'
ALTER TABLE t1n CHANGE c4 c11 INT, ADD INDEX(c11), ALGORITHM=INPLACE;
ERROR 0A000: ALGORITHM=INPLACE is not supported. Reason: InnoDB presently supports one FULLTEXT index creation at a time. Try ALGORITHM=COPY.
ALTER TABLE t1n CHANGE c4 c11 INT, LOCK=NONE;
ALTER TABLE t1n ADD INDEX(c11), LOCK=NONE;
### files in MYSQL_DATA_DIR/test
FTS_AUX_INDEX_1.ibd
FTS_AUX_INDEX_2.ibd
...
...
@@ -1201,13 +1195,9 @@ tt.isl
t1c.ibd
t1p.ibd
tt.ibd
call mtr.add_suppression("Error: no matching column for .FTS_DOC_ID. in index .ct.--temporary-- of table .test...t1o");
ALTER TABLE t1o ADD FULLTEXT INDEX(ct),
CHANGE c1 FTS_DOC_ID BIGINT UNSIGNED NOT NULL,
ALGORITHM=INPLACE;
ERROR HY000: Incorrect key file for table 't1o'; try to repair it
ALTER TABLE t1o CHANGE c1 FTS_DOC_ID BIGINT UNSIGNED NOT NULL, LOCK=NONE;
ALTER TABLE t1o ADD FULLTEXT INDEX(ct), ALGORITHM=INPLACE;
### files in MYSQL_DATA_DIR/test
FTS_AUX_INDEX_1.ibd
FTS_AUX_INDEX_2.ibd
...
...
@@ -1249,6 +1239,9 @@ tt.isl
t1c.ibd
t1p.ibd
tt.ibd
ALTER TABLE t1o CHANGE FTS_DOC_ID foo_id BIGINT UNSIGNED NOT NULL,
LOCK=NONE;
ERROR 0A000: LOCK=NONE is not supported. Reason: Cannot drop or rename FTS_DOC_ID. Try LOCK=SHARED.
SELECT sc.pos FROM information_schema.innodb_sys_columns sc
INNER JOIN information_schema.innodb_sys_tables st
ON sc.TABLE_ID=st.TABLE_ID
...
...
@@ -1352,9 +1345,6 @@ tt.isl
tt.ibd
ALTER TABLE t1o CHANGE foo_id FTS_DOC_ID BIGINT UNSIGNED NOT NULL,
ADD FULLTEXT INDEX(ct);
ERROR HY000: Incorrect key file for table 't1o'; try to repair it
ALTER TABLE t1o CHANGE foo_id FTS_DOC_ID BIGINT UNSIGNED NOT NULL, LOCK=NONE;
ALTER TABLE t1o ADD FULLTEXT INDEX(ct), ALGORITHM=INPLACE;
### files in MYSQL_DATA_DIR/test
FTS_AUX_INDEX_1.ibd
FTS_AUX_INDEX_2.ibd
...
...
mysql-test/suite/innodb/r/table_definition_cache_debug.result
0 → 100644
View file @
255c2398
SET @save_tdc= @@GLOBAL.table_definition_cache;
SET @save_toc= @@GLOBAL.table_open_cache;
SET GLOBAL table_definition_cache= 400;
SET GLOBAL table_open_cache= 1024;
CREATE TABLE to_be_evicted(a INT PRIMARY KEY, b INT NOT NULL) ENGINE=InnoDB;
INSERT INTO to_be_evicted VALUES(1,2),(2,1);
SET DEBUG_SYNC = 'row_log_apply_before SIGNAL scanned WAIT_FOR got_duplicate';
ALTER TABLE to_be_evicted ADD UNIQUE INDEX(b);
SET DEBUG_SYNC = 'now WAIT_FOR scanned';
BEGIN;
INSERT INTO to_be_evicted VALUES(3, 2);
SET DEBUG_SYNC = 'now SIGNAL got_duplicate';
ERROR 23000: Duplicate entry '2' for key 'b'
COMMIT;
SET DEBUG_SYNC = RESET;
FLUSH TABLES;
mysql-test/suite/innodb/r/undo_log.result
0 → 100644
View file @
255c2398
CREATE TABLE test_tab (
a_str_18 mediumtext,
b_str_3 varchar(32) DEFAULT NULL,
a_str_13 mediumtext,
b_str_5 varchar(40) DEFAULT NULL,
b_str_6 varchar(50) DEFAULT NULL,
b_str_7 char(32) DEFAULT NULL,
b_str_8 varchar(32) DEFAULT NULL,
b_str_9 varchar(255) DEFAULT NULL,
a_str_28 char(255) DEFAULT NULL,
a_str_27 varchar(255) DEFAULT NULL,
b_str_10 varchar(32) DEFAULT NULL,
a_str_26 varchar(255) DEFAULT NULL,
a_str_6 varchar(50) DEFAULT NULL,
b_str_11 varchar(32) DEFAULT NULL,
b_str_12 varchar(255) DEFAULT NULL,
b_str_13 char(32) DEFAULT NULL,
b_str_14 varchar(32) DEFAULT NULL,
b_str_15 char(32) DEFAULT NULL,
b_str_16 char(32) DEFAULT NULL,
b_str_17 varchar(32) DEFAULT NULL,
b_str_18 varchar(32) DEFAULT NULL,
a_str_25 varchar(40) DEFAULT NULL,
b_str_19 varchar(255) DEFAULT NULL,
a_str_23 varchar(40) DEFAULT NULL,
b_str_20 varchar(32) DEFAULT NULL,
a_str_21 varchar(255) DEFAULT NULL,
a_str_20 varchar(255) DEFAULT NULL,
a_str_39 varchar(255) DEFAULT NULL,
a_str_38 varchar(255) DEFAULT NULL,
a_str_37 varchar(255) DEFAULT NULL,
b_str_21 char(32) DEFAULT NULL,
b_str_23 varchar(80) DEFAULT NULL,
b_str_24 varchar(32) DEFAULT NULL,
b_str_25 varchar(32) DEFAULT NULL,
b_str_26 char(32) NOT NULL DEFAULT '',
b_str_27 varchar(255) DEFAULT NULL,
a_str_36 varchar(255) DEFAULT NULL,
a_str_33 varchar(100) DEFAULT NULL,
a_ref_10 char(32) DEFAULT NULL,
b_str_28 char(32) DEFAULT NULL,
b_str_29 char(32) DEFAULT NULL,
a_ref_6 char(32) DEFAULT NULL,
a_ref_12 varchar(32) DEFAULT NULL,
a_ref_11 varchar(32) DEFAULT NULL,
a_str_49 varchar(40) DEFAULT NULL,
b_str_30 varchar(32) DEFAULT NULL,
a_ref_3 varchar(32) DEFAULT NULL,
a_str_48 varchar(40) DEFAULT NULL,
a_ref_1 char(32) DEFAULT NULL,
b_str_31 varchar(32) DEFAULT NULL,
b_str_32 varchar(255) DEFAULT NULL,
b_str_33 char(32) DEFAULT NULL,
b_str_34 varchar(32) DEFAULT NULL,
a_str_47 varchar(40) DEFAULT NULL,
b_str_36 varchar(255) DEFAULT NULL,
a_str_46 varchar(40) DEFAULT NULL,
a_str_45 varchar(255) DEFAULT NULL,
b_str_38 varchar(32) DEFAULT NULL,
b_str_39 char(32) DEFAULT NULL,
b_str_40 varchar(32) DEFAULT NULL,
a_str_41 varchar(255) DEFAULT NULL,
b_str_41 varchar(32) DEFAULT NULL,
PRIMARY KEY (b_str_26),
UNIQUE KEY a_str_47 (a_str_47),
UNIQUE KEY a_str_49 (a_str_49),
UNIQUE KEY a_str_33 (a_str_33),
UNIQUE KEY a_str_46 (a_str_46),
UNIQUE KEY a_str_48 (a_str_48),
KEY b_str_18 (b_str_18),
KEY a_str_26 (a_str_26),
KEY b_str_27 (b_str_27,b_str_19),
KEY b_str_41 (b_str_41),
KEY b_str_15 (b_str_15),
KEY a_str_20 (a_str_20),
KEY b_str_17 (b_str_17),
KEY b_str_40 (b_str_40),
KEY b_str_24 (b_str_24),
KEY b_str_10 (b_str_10),
KEY b_str_16 (b_str_16),
KEY b_str_29 (b_str_29),
KEY a_str_41 (a_str_41),
KEY b_str_7 (b_str_7),
KEY a_str_45 (a_str_45),
KEY a_str_28 (a_str_28),
KEY a_str_37 (a_str_37),
KEY b_str_6 (b_str_6),
KEY a_ref_6 (a_ref_6),
KEY b_str_34 (b_str_34),
KEY b_str_38 (b_str_38),
KEY a_ref_10 (a_ref_10),
KEY b_str_21 (b_str_21),
KEY b_str_23 (b_str_23,b_str_19),
KEY b_str_33 (b_str_33),
KEY a_ref_12 (a_ref_12),
KEY a_str_18 (a_str_18(255)),
KEY a_str_39 (a_str_39),
KEY a_str_27 (a_str_27),
KEY a_str_25 (a_str_25),
KEY b_str_9 (b_str_9),
KEY a_str_23 (a_str_23),
KEY b_str_8 (b_str_8),
KEY a_str_21 (a_str_21),
KEY b_str_3 (b_str_3),
KEY b_str_30 (b_str_30),
KEY b_str_12 (b_str_12),
KEY b_str_25 (b_str_25),
KEY b_str_13 (b_str_13),
KEY a_str_38 (a_str_38),
KEY a_str_13 (a_str_13(255)),
KEY a_str_36 (a_str_36),
KEY b_str_28 (b_str_28),
KEY b_str_19 (b_str_19),
KEY b_str_11 (b_str_11),
KEY a_ref_1 (a_ref_1),
KEY b_str_20 (b_str_20),
KEY b_str_14 (b_str_14),
KEY a_ref_3 (a_ref_3),
KEY b_str_39 (b_str_39),
KEY b_str_32 (b_str_32),
KEY a_str_6 (a_str_6),
KEY b_str_5 (b_str_5),
KEY b_str_31 (b_str_31),
KEY a_ref_11 (a_ref_11)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
BEGIN;
INSERT INTO test_tab (b_str_26, a_str_13, a_str_18) VALUES
('a', REPEAT('f',4031), REPEAT('g', 4031));
UPDATE test_tab SET a_str_13=REPEAT('h',4032), a_str_18=REPEAT('i',4032);
SELECT 'Reducing length to 4030';
Reducing length to 4030
Reducing length to 4030
UPDATE test_tab SET a_str_13=REPEAT('j',4030), a_str_18=REPEAT('k',4030);
UPDATE test_tab SET a_str_13=REPEAT('l',4031), a_str_18=REPEAT('m',4031);
ROLLBACK;
SELECT COUNT(*) FROM test_tab;
COUNT(*)
0
CHECK TABLE test_tab;
Table Op Msg_type Msg_text
test.test_tab check status OK
DROP TABLE test_tab;
mysql-test/suite/innodb/t/innodb-16k.test
View file @
255c2398
...
...
@@ -328,10 +328,10 @@ UPDATE t1 SET a=@c,b=@c,c=@c,d=@c,e=@c,f=@c,g=@c,h=@c,i=@c,j=@c,
# because the UNDO records will be smaller.
CREATE
INDEX
t1f
ON
t1
(
f
(
767
));
--
error
1713
BEGIN
;
UPDATE
t1
SET
a
=@
d
,
b
=@
d
,
c
=@
d
,
d
=@
d
,
e
=@
d
,
f
=@
d
,
g
=@
d
,
h
=@
d
,
i
=@
d
,
j
=@
d
,
k
=@
d
,
l
=@
d
,
m
=@
d
,
n
=@
d
,
o
=@
d
,
p
=@
d
,
q
=@
d
,
r
=@
d
,
s
=@
d
,
t
=@
d
,
u
=@
d
;
ROLLBACK
;
BEGIN
;
UPDATE
t1
SET
a
=@
d
,
b
=@
d
,
c
=@
d
,
d
=@
d
,
e
=@
d
;
UPDATE
t1
SET
f
=@
d
,
g
=@
d
,
h
=@
d
,
i
=@
d
,
j
=@
d
,
k
=@
d
,
l
=@
d
,
m
=@
d
,
...
...
@@ -371,8 +371,9 @@ UPDATE t1 SET s=@e;
# that CANNOT be updated.
CREATE
INDEX
t1t
ON
t1
(
t
(
767
));
--
error
1713
BEGIN
;
UPDATE
t1
SET
t
=@
e
;
ROLLBACK
;
# The function dict_index_too_big_for_undo() prevents us from adding
# one more index. But it is too late. The record is already too big.
...
...
@@ -515,9 +516,10 @@ INSERT INTO bug12547647 VALUES (5,REPEAT('khdfo5AlOq',1900),REPEAT('g',7751));
COMMIT
;
# The following used to cause a hang while doing infinite undo log allocation.
--
error
1713
BEGIN
;
UPDATE
bug12547647
SET
c
=
REPEAT
(
'b'
,
16928
);
SHOW
WARNINGS
;
ROLLBACK
;
DROP
TABLE
bug12547647
;
...
...
mysql-test/suite/innodb/t/innodb-32k.test
View file @
255c2398
...
...
@@ -294,13 +294,14 @@ UPDATE t1 SET a=@c,b=@c,c=@c,d=@c,e=@c,f=@c,g=@c,h=@c,i=@c,j=@c,
CREATE
INDEX
t1f17
ON
t1
(
v
(
767
));
--
error
1713
BEGIN
;
UPDATE
t1
SET
a
=@
d
,
b
=@
d
,
c
=@
d
,
d
=@
d
,
e
=@
d
,
f
=@
d
,
g
=@
d
,
h
=@
d
,
i
=@
d
,
j
=@
d
,
k
=@
d
,
l
=@
d
,
m
=@
d
,
n
=@
d
,
o
=@
d
,
p
=@
d
,
q
=@
d
,
r
=@
d
,
s
=@
d
,
t
=@
d
,
u
=@
d
,
v
=@
d
,
w
=@
d
,
x
=@
d
,
y
=@
d
,
z
=@
d
,
aa
=@
d
,
ba
=@
d
,
ca
=@
d
,
da
=@
d
,
ea
=@
d
,
fa
=@
d
,
ga
=@
d
,
ha
=@
d
,
ia
=@
d
,
ja
=@
d
,
ka
=@
d
,
la
=@
d
,
ma
=@
d
,
na
=@
d
,
oa
=@
d
,
pa
=@
d
,
qa
=@
d
,
ra
=@
d
,
sa
=@
d
,
ta
=@
d
,
ua
=@
d
,
va
=@
d
,
wa
=@
d
,
xa
=@
d
,
ya
=@
d
,
za
=@
d
;
ROLLBACK
;
BEGIN
;
UPDATE
t1
SET
a
=@
d
,
b
=@
d
,
c
=@
d
,
d
=@
d
,
e
=@
d
;
...
...
mysql-test/suite/innodb/t/innodb-64k.test
View file @
255c2398
...
...
@@ -304,7 +304,7 @@ COMMIT;
CREATE
INDEX
tg1f2
ON
t1
(
ia
(
767
),
ja
(
767
));
--
error
1713
BEGIN
;
UPDATE
t1
SET
a
=@
d
,
b
=@
d
,
c
=@
d
,
d
=@
d
,
e
=@
d
,
f
=@
d
,
g
=@
d
,
h
=@
d
,
i
=@
d
,
j
=@
d
,
k
=@
d
,
l
=@
d
,
m
=@
d
,
n
=@
d
,
o
=@
d
,
p
=@
d
,
q
=@
d
,
r
=@
d
,
s
=@
d
,
t
=@
d
,
u
=@
d
,
v
=@
d
,
w
=@
d
,
x
=@
d
,
y
=@
d
,
z
=@
d
,
...
...
@@ -317,6 +317,7 @@ UPDATE t1 SET a=@d,b=@d,c=@d,d=@d,e=@d,f=@d,g=@d,h=@d,i=@d,j=@d,
ac
=@
d
,
bc
=@
d
,
cc
=@
d
,
dc
=@
d
,
ec
=@
d
,
fc
=@
d
,
gc
=@
d
,
hc
=@
d
,
ic
=@
d
,
jc
=@
d
,
kc
=@
d
,
lc
=@
d
,
mc
=@
d
,
nc
=@
d
,
oc
=@
d
,
pc
=@
d
,
qc
=@
d
,
rc
=@
d
,
sc
=@
d
,
tc
=@
d
,
uc
=@
d
,
vc
=@
d
,
wc
=@
d
,
xc
=@
d
,
yc
=@
d
,
zc
=@
d
;
ROLLBACK
;
BEGIN
;
UPDATE
t1
SET
a
=@
d
,
b
=@
d
,
c
=@
d
,
d
=@
d
,
e
=@
d
;
...
...
mysql-test/suite/innodb/t/innodb-alter-table.test
View file @
255c2398
--
source
include
/
innodb_page_size
.
inc
--
source
include
/
have_partition
.
inc
#
# MMDEV-8386: MariaDB creates very big tmp file and hangs on xtradb
...
...
@@ -171,3 +172,35 @@ ALTER TABLE ticket
SHOW
CREATE
TABLE
ticket
;
DROP
TABLE
ticket
;
#
# MDEV-13838: Wrong result after altering a partitioned table
#
CREATE
TABLE
t
(
id
bigint
(
20
)
unsigned
NOT
NULL
auto_increment
,
d
date
NOT
NULL
,
a
bigint
(
20
)
unsigned
NOT
NULL
,
b
smallint
(
5
)
unsigned
DEFAULT
NULL
,
PRIMARY
KEY
(
id
,
d
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
COLLATE
=
latin1_general_cs
STATS_SAMPLE_PAGES
=
2
PARTITION
BY
RANGE
COLUMNS
(
d
)
(
PARTITION
p20170914
VALUES
LESS
THAN
(
'2017-09-15'
)
ENGINE
=
InnoDB
,
PARTITION
p99991231
VALUES
LESS
THAN
(
MAXVALUE
)
ENGINE
=
InnoDB
);
insert
into
t
(
d
,
a
,
b
)
values
(
'2017-09-15'
,
rand
()
*
10000
,
rand
()
*
10
);
insert
into
t
(
d
,
a
,
b
)
values
(
'2017-09-15'
,
rand
()
*
10000
,
rand
()
*
10
);
replace
into
t
(
d
,
a
,
b
)
select
'2017-09-15'
,
rand
()
*
10000
,
rand
()
*
10
from
t
t1
,
t
t2
,
t
t3
,
t
t4
;
select
count
(
*
)
from
t
where
d
=
'2017-09-15'
;
ALTER
TABLE
t
CHANGE
b
c
smallint
(
5
)
unsigned
,
ADD
KEY
idx_d_a
(
d
,
a
);
SHOW
CREATE
TABLE
t
;
analyze
table
t
;
select
count
(
*
)
from
t
where
d
=
'2017-09-15'
;
select
count
(
*
)
from
t
force
index
(
primary
)
where
d
=
'2017-09-15'
;
DROP
TABLE
t
;
mysql-test/suite/innodb/t/innodb-alter.test
View file @
255c2398
...
...
@@ -298,21 +298,12 @@ SHOW CREATE TABLE t1n;
ALTER
TABLE
t1n
ADD
INDEX
(
c2
),
CHANGE
c2
c4
INT
,
ALGORITHM
=
INPLACE
;
--
error
ER_KEY_COLUMN_DOES_NOT_EXITS
ALTER
TABLE
t1n
ADD
INDEX
(
c2
),
CHANGE
c2
c4
INT
,
ALGORITHM
=
COPY
;
# FIXME: MDEV-13668 InnoDB unnecessarily rebuilds table
# when renaming a column and adding index
--
error
ER_ALTER_OPERATION_NOT_SUPPORTED_REASON
ALTER
TABLE
t1n
ADD
INDEX
(
c4
),
CHANGE
c2
c4
INT
,
ALGORITHM
=
INPLACE
;
ALTER
TABLE
t1n
CHANGE
c2
c4
INT
,
LOCK
=
NONE
;
ALTER
TABLE
t1n
ADD
INDEX
(
c4
),
LOCK
=
NONE
;
SHOW
CREATE
TABLE
t1n
;
ALTER
TABLE
t1n
DROP
INDEX
c4
;
--
error
ER_DUP_FIELDNAME
ALTER
TABLE
t1n
CHANGE
c4
c1
INT
,
ADD
INDEX
(
c1
),
ALGORITHM
=
INPLACE
;
# FIXME: MDEV-13668
--
error
ER_ALTER_OPERATION_NOT_SUPPORTED_REASON
ALTER
TABLE
t1n
CHANGE
c4
c11
INT
,
ADD
INDEX
(
c11
),
ALGORITHM
=
INPLACE
;
ALTER
TABLE
t1n
CHANGE
c4
c11
INT
,
LOCK
=
NONE
;
ALTER
TABLE
t1n
ADD
INDEX
(
c11
),
LOCK
=
NONE
;
SHOW
CREATE
TABLE
t1n
;
DROP
TABLE
t1n
;
...
...
@@ -370,16 +361,12 @@ CHANGE FTS_DOC_ID foo_id BIGINT UNSIGNED NOT NULL;
ALTER
TABLE
t1o
ADD
UNIQUE
INDEX
FTS_DOC_ID_INDEX
(
foo_id
);
# FIXME: MDEV-9469 'Incorrect key file' on ALTER TABLE
call
mtr
.
add_suppression
(
"Error: no matching column for .FTS_DOC_ID. in index .ct.--temporary-- of table .test...t1o"
);
--
error
ER_NOT_KEYFILE
ALTER
TABLE
t1o
CHANGE
foo_id
FTS_DOC_ID
BIGINT
UNSIGNED
NOT
NULL
,
ADD
FULLTEXT
INDEX
(
ct
);
# FIXME: MDEV-9469 (enable this)
#--error ER_ALTER_OPERATION_NOT_SUPPORTED_REASON
#ALTER TABLE t1o CHANGE FTS_DOC_ID foo_id BIGINT UNSIGNED NOT NULL,
#ALGORITHM=INPLACE;
#end of MDEV-9469 FIXME
--
error
ER_ALTER_OPERATION_NOT_SUPPORTED_REASON
ALTER
TABLE
t1o
CHANGE
FTS_DOC_ID
foo_id
BIGINT
UNSIGNED
NOT
NULL
,
ALGORITHM
=
INPLACE
;
DROP
TABLE
sys_indexes
;
CREATE
TABLE
sys_indexes
SELECT
i
.
*
FROM
INFORMATION_SCHEMA
.
INNODB_SYS_INDEXES
i
...
...
@@ -494,6 +481,3 @@ eval ALTER TABLE $source_db.t1 DROP INDEX index2, algorithm=inplace;
eval
DROP
TABLE
$source_db
.
t1
;
eval
DROP
DATABASE
$source_db
;
eval
DROP
DATABASE
$dest_db
;
mysql-test/suite/innodb/t/innodb-get-fk.test
View file @
255c2398
...
...
@@ -40,6 +40,11 @@ CONSTRAINT `fk_crewRoleAssigned_pilotId` FOREIGN KEY (`crew_id`) REFERENCES `rep
ALTER
TABLE
`repro`
.
`crew_role_assigned`
COMMENT
=
'innodb_read_only'
;
SHOW
CREATE
TABLE
`repro`
.
`crew_role_assigned`
;
# These should be ignored in innodb_read_only mode.
SET
GLOBAL
innodb_buffer_pool_load_now
=
ON
;
SET
GLOBAL
innodb_buffer_pool_dump_now
=
ON
;
SET
GLOBAL
innodb_buffer_pool_load_abort
=
ON
;
--
let
$restart_parameters
=
--
source
include
/
restart_mysqld
.
inc
...
...
mysql-test/suite/innodb/t/innodb-page_compression_tables.test
View file @
255c2398
...
...
@@ -32,10 +32,8 @@ create table innodb_redundant(c1 bigint not null, b char(200)) engine=innodb row
show
warnings
;
create
table
innodb_redundant
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
row_format
=
redundant
;
show
create
table
innodb_redundant
;
--
replace_regex
/
#sql-[0-9a-f_]*`/#sql-temporary`/
--
error
1005
--
error
ER_ILLEGAL_HA_CREATE_OPTION
alter
table
innodb_redundant
page_compressed
=
1
;
--
replace_regex
/
#sql-[0-9a-f_]*`/#sql-temporary`/
show
warnings
;
show
create
table
innodb_redundant
;
alter
table
innodb_redundant
row_format
=
compact
page_compressed
=
1
;
...
...
mysql-test/suite/innodb/t/innodb-table-online.test
View file @
255c2398
...
...
@@ -14,6 +14,9 @@ call mtr.add_suppression("MySQL is trying to open a table handle but the .ibd fi
# DISCARD TABLESPACE needs file-per-table
SET
@
global_innodb_file_per_table_orig
=
@@
global
.
innodb_file_per_table
;
SET
GLOBAL
innodb_file_per_table
=
on
;
# PAGE_COMPRESSED needs innodb_file_format!=Antelope
SET
@
file_format
=
@@
GLOBAL
.
innodb_file_format
;
SET
GLOBAL
innodb_file_format
=
Barracuda
;
# Save the initial number of concurrent sessions.
--
source
include
/
count_sessions
.
inc
...
...
@@ -215,7 +218,8 @@ SET DEBUG_SYNC = 'row_log_table_apply1_before SIGNAL rebuilt2 WAIT_FOR dml2_done
# Ensure that the ALTER TABLE will be executed even with some concurrent DML.
SET
lock_wait_timeout
=
10
;
--
send
ALTER
TABLE
t1
ROW_FORMAT
=
COMPACT
,
ALGORITHM
=
INPLACE
;
ALTER
TABLE
t1
ROW_FORMAT
=
COMPACT
PAGE_COMPRESSED
=
YES
PAGE_COMPRESSION_LEVEL
=
1
,
ALGORITHM
=
INPLACE
;
# Generate some log (delete-mark, delete-unmark, insert etc.)
# while the index creation is blocked. Some of this may run
...
...
@@ -443,6 +447,7 @@ DROP TABLE t1;
--
source
include
/
wait_until_count_sessions
.
inc
SET
GLOBAL
innodb_file_per_table
=
@
global_innodb_file_per_table_orig
;
SET
GLOBAL
innodb_file_format
=
@
file_format
;
--
disable_warnings
SET
GLOBAL
innodb_monitor_enable
=
default
;
SET
GLOBAL
innodb_monitor_disable
=
default
;
...
...
mysql-test/suite/innodb/t/innodb-wl5522-debug.test
View file @
255c2398
This diff is collapsed.
Click to expand it.
mysql-test/suite/innodb/t/innodb-wl5980-alter.test
View file @
255c2398
...
...
@@ -447,12 +447,7 @@ ALTER TABLE t1n ADD INDEX(c2), CHANGE c2 c4 INT, ALGORITHM=INPLACE;
--
error
ER_KEY_COLUMN_DOES_NOT_EXITS
ALTER
TABLE
t1n
ADD
INDEX
(
c2
),
CHANGE
c2
c4
INT
,
ALGORITHM
=
COPY
;
# FIXME: MDEV-13668 InnoDB unnecessarily rebuilds table
# when renaming a column and adding index
--
error
ER_ALTER_OPERATION_NOT_SUPPORTED_REASON
ALTER
TABLE
t1n
ADD
INDEX
(
c4
),
CHANGE
c2
c4
INT
,
ALGORITHM
=
INPLACE
;
ALTER
TABLE
t1n
CHANGE
c2
c4
INT
,
LOCK
=
NONE
;
ALTER
TABLE
t1n
ADD
INDEX
(
c4
),
LOCK
=
NONE
;
--
echo
### files in MYSQL_DATA_DIR/test
--
replace_regex
$regexp
...
...
@@ -474,11 +469,7 @@ ALTER TABLE t1n DROP INDEX c4;
--
error
ER_DUP_FIELDNAME
ALTER
TABLE
t1n
CHANGE
c4
c1
INT
,
ADD
INDEX
(
c1
),
ALGORITHM
=
INPLACE
;
# FIXME: MDEV-13668
--
error
ER_ALTER_OPERATION_NOT_SUPPORTED_REASON
ALTER
TABLE
t1n
CHANGE
c4
c11
INT
,
ADD
INDEX
(
c11
),
ALGORITHM
=
INPLACE
;
ALTER
TABLE
t1n
CHANGE
c4
c11
INT
,
LOCK
=
NONE
;
ALTER
TABLE
t1n
ADD
INDEX
(
c11
),
LOCK
=
NONE
;
--
echo
### files in MYSQL_DATA_DIR/test
--
replace_regex
$regexp
...
...
@@ -500,17 +491,10 @@ ALTER TABLE t1o MODIFY c1 BIGINT UNSIGNED NOT NULL;
--
replace_regex
$regexp
--
list_files
$MYSQL_TMP_DIR
/
alt_dir
/
test
# FIXME: MDEV-9469 'Incorrect key file' on ALTER TABLE
call
mtr
.
add_suppression
(
"Error: no matching column for .FTS_DOC_ID. in index .ct.--temporary-- of table .test...t1o"
);
--
error
ER_NOT_KEYFILE
ALTER
TABLE
t1o
ADD
FULLTEXT
INDEX
(
ct
),
CHANGE
c1
FTS_DOC_ID
BIGINT
UNSIGNED
NOT
NULL
,
ALGORITHM
=
INPLACE
;
ALTER
TABLE
t1o
CHANGE
c1
FTS_DOC_ID
BIGINT
UNSIGNED
NOT
NULL
,
LOCK
=
NONE
;
ALTER
TABLE
t1o
ADD
FULLTEXT
INDEX
(
ct
),
ALGORITHM
=
INPLACE
;
# end of MDEV-9469 FIXME
--
echo
### files in MYSQL_DATA_DIR/test
--
replace_regex
$regexp
--
list_files
$MYSQL_DATA_DIR
/
test
...
...
@@ -519,11 +503,9 @@ ALTER TABLE t1o ADD FULLTEXT INDEX(ct), ALGORITHM=INPLACE;
--
list_files
$MYSQL_TMP_DIR
/
alt_dir
/
test
# This would create a hidden FTS_DOC_ID column, which cannot be done online.
# FIXME: MDEV-9469 (enable this)
#--error ER_ALTER_OPERATION_NOT_SUPPORTED_REASON
#ALTER TABLE t1o CHANGE FTS_DOC_ID foo_id BIGINT UNSIGNED NOT NULL,
#LOCK=NONE;
#end of MDEV-9469 FIXME
--
error
ER_ALTER_OPERATION_NOT_SUPPORTED_REASON
ALTER
TABLE
t1o
CHANGE
FTS_DOC_ID
foo_id
BIGINT
UNSIGNED
NOT
NULL
,
LOCK
=
NONE
;
# This should not show duplicates.
SELECT
sc
.
pos
FROM
information_schema
.
innodb_sys_columns
sc
...
...
@@ -534,7 +516,6 @@ WHERE st.NAME='test/t1o' AND sc.NAME='FTS_DOC_ID';
--
replace_result
$MYSQL_TMP_DIR
MYSQL_TMP_DIR
SHOW
CREATE
TABLE
t1o
;
# FIXME: MDEV-13668
ALTER
TABLE
t1o
CHANGE
FTS_DOC_ID
foo_id
BIGINT
UNSIGNED
NOT
NULL
,
DROP
INDEX
ct
,
LOCK
=
NONE
;
...
...
@@ -572,15 +553,9 @@ ALTER TABLE t1o ADD UNIQUE INDEX FTS_DOC_ID_INDEX(foo_id);
--
replace_regex
$regexp
--
list_files
$MYSQL_TMP_DIR
/
alt_dir
/
test
# FIXME: MDEV-9469 'Incorrect key file' on ALTER TABLE
--
error
ER_NOT_KEYFILE
ALTER
TABLE
t1o
CHANGE
foo_id
FTS_DOC_ID
BIGINT
UNSIGNED
NOT
NULL
,
ADD
FULLTEXT
INDEX
(
ct
);
ALTER
TABLE
t1o
CHANGE
foo_id
FTS_DOC_ID
BIGINT
UNSIGNED
NOT
NULL
,
LOCK
=
NONE
;
ALTER
TABLE
t1o
ADD
FULLTEXT
INDEX
(
ct
),
ALGORITHM
=
INPLACE
;
#end of MDEV-9469 FIXME
--
echo
### files in MYSQL_DATA_DIR/test
--
replace_regex
$regexp
--
list_files
$MYSQL_DATA_DIR
/
test
...
...
mysql-test/suite/innodb/t/table_definition_cache_debug.opt
0 → 100644
View file @
255c2398
--innodb-open-files=13
Prev
1
2
3
4
5
6
7
8
9
…
50
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment