diff options
Diffstat (limited to 'mysql-test/suite/innodb_fts/t/fulltext3.test')
-rw-r--r-- | mysql-test/suite/innodb_fts/t/fulltext3.test | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/mysql-test/suite/innodb_fts/t/fulltext3.test b/mysql-test/suite/innodb_fts/t/fulltext3.test new file mode 100644 index 00000000..9c7941d7 --- /dev/null +++ b/mysql-test/suite/innodb_fts/t/fulltext3.test @@ -0,0 +1,46 @@ +--source include/have_gbk.inc +# +# test of new fulltext search features +# +--source include/have_innodb.inc + +--disable_warnings +DROP TABLE IF EXISTS t1; +--enable_warnings + +let $default_engine = `select @@SESSION.default_storage_engine`; +# +# BUG#29299 - repeatable myisam fulltext index corruption +# +# INNODB_FTS: Not yet support gbk charset +CREATE TABLE t1(a VARCHAR(255) CHARACTER SET gbk, FULLTEXT(a)) ENGINE = InnoDB; +SET NAMES utf8; +# INSERT INTO t1 VALUES(0xF043616161),(0xBEF361616197C22061616161); +# SELECT HEX(a) FROM t1 WHERE MATCH(a) AGAINST(0x97C22061616161 IN BOOLEAN MODE); +DELETE FROM t1 LIMIT 1; +#CHECK TABLE t1; +SET NAMES latin1; +DROP TABLE t1; + +# End of 5.0 tests + +# +# BUG#29464 - load data infile into table with big5 chinese fulltext index +# hangs 100% cpu +# +--replace_result $default_engine <default_engine> +EVAL CREATE TABLE t1(a VARCHAR(2) CHARACTER SET big5 COLLATE big5_chinese_ci, +FULLTEXT(a)) ENGINE=$default_engine; +# INSERT INTO t1 VALUES(0xA3C2); +DROP TABLE t1; + +# End of 5.1 tests + + +CREATE TABLE t1 (a SERIAL, t TEXT, FULLTEXT f1(t), FULLTEXT f2(t)) ENGINE=InnoDB; +INSERT INTO t1 (a,t) VALUES (1,'1'),(2,'1'); +ALTER TABLE t1 ADD COLUMN g TEXT GENERATED ALWAYS AS (t) VIRTUAL; +DELETE FROM t1 WHERE a = 1; +ALTER TABLE t1 DROP INDEX f1; +INSERT INTO t1 (a,t) VALUES (1,'1'); +DROP TABLE t1; |