Current Path : /home/usr.opt/mysql57/mysql-test/suite/innodb/r/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //home/usr.opt/mysql57/mysql-test/suite/innodb/r/innodb-alter-debug.result |
SET NAMES utf8; CREATE TABLE ① ( c1 INT PRIMARY KEY, c2 INT DEFAULT 1, ct TEXT, INDEX(c2)) ENGINE = InnoDB; CREATE TABLE t1ć (c1 INT PRIMARY KEY, c2 INT, INDEX(c2), CONSTRAINT t1c2 FOREIGN KEY (c2) REFERENCES ①(c2)) ENGINE=InnoDB; INSERT INTO ① SET c1 = 1; SET DEBUG = '+d,ib_drop_foreign_error'; ALTER TABLE t1ć DROP FOREIGN KEY t1c2, RENAME TO ②; ERROR HY000: The table 't1ć' is full SET DEBUG = '-d,ib_drop_foreign_error'; SET DEBUG = '+d,ib_rename_column_error'; ALTER TABLE ① CHANGE c2 š INT; ERROR HY000: The table '①' is full SET DEBUG = '-d,ib_rename_column_error'; SHOW CREATE TABLE t1ć; Table Create Table t1ć CREATE TABLE `t1ć` ( `c1` int(11) NOT NULL, `c2` int(11) DEFAULT NULL, PRIMARY KEY (`c1`), KEY `c2` (`c2`), CONSTRAINT `t1c2` FOREIGN KEY (`c2`) REFERENCES `①` (`c2`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 DROP TABLE t1ć, ①; # # Bug #21364096 THE BOGUS DUPLICATE KEY ERROR IN ONLINE DDL # WITH INCORRECT KEY NAME create table t1 (id int auto_increment primary key, a int, unique key uk(a))engine=innodb; insert into t1 select 1, 1; insert into t1 select 2, 2; SET DEBUG_SYNC = 'row_log_table_apply1_before SIGNAL s1 WAIT_FOR s2'; alter table t1 add b int, ALGORITHM=inplace; /* connection con1 */ SET DEBUG_SYNC = 'now WAIT_FOR s1'; insert into t1 select NULL, 1; ERROR 23000: Duplicate entry '1' for key 'uk' SET DEBUG_SYNC = 'now SIGNAL s2'; /* connection default */ /* reap */ alter table t1 add b int, ALGORITHM=inplace; ERROR 23000: Duplicate entry '1' for key 'uk' SET DEBUG_SYNC = 'row_log_table_apply1_before SIGNAL s1 WAIT_FOR s2'; alter table t1 add b int, ALGORITHM=inplace;; /* connection con1 */ set DEBUG_SYNC = 'now WAIT_FOR s1'; update t1 set a=1 where id=2; ERROR 23000: Duplicate entry '1' for key 'uk' SET DEBUG_SYNC = 'now SIGNAL s2'; /* connection default */ /* reap */ alter table t1 add b int, ALGORITHM=inplace; ERROR 23000: Duplicate entry '1' for key 'uk' drop table t1; # # Bug #27753193 ASSERTION `PREBUILT->TRX->ERROR_KEY_NUM < # HA_ALTER_INFO->KEY_COUNT' CREATE TABLE t1 (a INT, UNIQUE KEY(a)) ENGINE = INNODB; INSERT INTO t1 VALUES (1); SET DEBUG_SYNC = 'row_log_table_apply1_before signal S1 WAIT_FOR S2'; OPTIMIZE TABLE t1;; SET DEBUG_SYNC = 'now WAIT_FOR S1'; INSERT INTO t1 VALUES (1); ERROR 23000: Duplicate entry '1' for key 'a' SET DEBUG_SYNC = 'now SIGNAL S2'; /* reap */ OPTIMIZE TABLE t1; Table Op Msg_type Msg_text test.t1 optimize note Table does not support optimize, doing recreate + analyze instead test.t1 optimize error Duplicate entry '1' for key 'a' test.t1 optimize status Operation failed Warnings: Error 1062 Duplicate entry '1' for key 'a' SET DEBUG_SYNC='RESET'; DROP TABLE t1;