config root man

Current Path : /home/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
Upload File :
Current File : /home/usr.opt/mysql57/mysql-test/suite/innodb_fts/t/foreign_key_check.test

#
# BUG#22094601 CREATE TABLE WITH FULLTEXT AND CONSTRAINT FAILS WHEN FOREIGN_KEY_CHECKS IS 0
#

--source include/have_innodb.inc

--error ER_CANNOT_ADD_FOREIGN
CREATE TABLE t1 (
  id       INT NOT NULL,
  title    TEXT,
  PRIMARY  KEY (id),
  FULLTEXT KEY (title),
  FOREIGN  KEY (id) REFERENCES t2 (id)
) ENGINE=InnoDB;

CREATE TABLE t1 (
  id       INT NOT NULL,
  title    TEXT,
  PRIMARY  KEY (id)
) ENGINE=InnoDB;

--error ER_CANNOT_ADD_FOREIGN
ALTER TABLE t1 ADD FULLTEXT KEY (title), ADD FOREIGN KEY (id) REFERENCES t2 (id);

SET FOREIGN_KEY_CHECKS = 0;

ALTER TABLE t1 ADD FULLTEXT KEY (title), ADD FOREIGN KEY (id) REFERENCES t2 (id);

DROP TABLE t1;

CREATE TABLE t1 (
  id       INT NOT NULL,
  title    TEXT,
  PRIMARY  KEY (id),
  FULLTEXT KEY (title),
  FOREIGN  KEY (id) REFERENCES t2 (id)
) ENGINE=InnoDB;

DROP TABLE t1;

SET FOREIGN_KEY_CHECKS = 1;

Man Man