Current Path : /usr/opt/mysql57/mysql-test/suite/innodb_fts/t/ |
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 : //usr/opt/mysql57/mysql-test/suite/innodb_fts/t/foreign_key_update.test |
# # BUG#21111301 INNODB FTS: ERROR DUPLICATE ENTRY IN FTS_DOC_ID_INDEX ON UPDATE CASCADE # CREATE TABLE t1 ( a varchar(40), KEY a(a) ) ENGINE=InnoDB; CREATE TABLE t1_fk ( a varchar(40), KEY a(a), FULLTEXT KEY (a), CONSTRAINT fk FOREIGN KEY (a) REFERENCES t1 (a) ON UPDATE CASCADE ) ENGINE=InnoDB; INSERT INTO t1 VALUES('mysql'); INSERT INTO t1_fk VALUES('mysql'); INSERT INTO t1_fk VALUES('mysql'); SELECT * FROM t1_fk; SELECT * FROM t1_fk WHERE MATCH(a) AGAINST('mysql'); UPDATE t1 SET a = 'database' WHERE a = 'mysql'; SELECT * FROM t1_fk; SELECT * FROM t1_fk WHERE MATCH(a) AGAINST('mysql'); SELECT * FROM t1_fk WHERE MATCH(a) AGAINST('database'); DROP TABLE t1_fk; DROP TABLE t1;