summaryrefslogtreecommitdiff
path: root/mysql-test/r/fulltext.result
diff options
context:
space:
mode:
authorunknown <svoj@mysql.com/june.mysql.com>2007-07-05 15:17:06 +0500
committerunknown <svoj@mysql.com/june.mysql.com>2007-07-05 15:17:06 +0500
commit3bd52b0b7b4cddc973b74af64c097033cb75e149 (patch)
tree8b54b83ae7e0a63dac8e6950d3eb250c5680d3ae /mysql-test/r/fulltext.result
parent435df1859fc503c884cdec9eaceb7f5f102af70d (diff)
downloadmariadb-git-3bd52b0b7b4cddc973b74af64c097033cb75e149.tar.gz
BUG#29464 - load data infile into table with big5 chinese fulltext index
hangs 100% cpu Fulltext parser may fall into infinite loop when it gets illegal multibyte sequence (or a sequence that doesn't have mapping to unicode). Affects 5.1 only. mysql-test/r/fulltext.result: A test case for BUG#29464. mysql-test/t/fulltext.test: A test case for BUG#29464. storage/myisam/ft_parser.c: ctype() may return negative value, which was stored in unsigned variable. Also ctype() may return negative length for correct multibyte sequence that doesn't have a mapping to unicode. These characters are skipped correctly with this patch.
Diffstat (limited to 'mysql-test/r/fulltext.result')
-rw-r--r--mysql-test/r/fulltext.result4
1 files changed, 4 insertions, 0 deletions
diff --git a/mysql-test/r/fulltext.result b/mysql-test/r/fulltext.result
index d8e3d53f7b1..ef8cf304743 100644
--- a/mysql-test/r/fulltext.result
+++ b/mysql-test/r/fulltext.result
@@ -476,3 +476,7 @@ ALTER TABLE t1 DISABLE KEYS;
SELECT * FROM t1 WHERE MATCH(a) AGAINST('test');
ERROR HY000: Can't find FULLTEXT index matching the column list
DROP TABLE t1;
+CREATE TABLE t1(a VARCHAR(2) CHARACTER SET big5 COLLATE big5_chinese_ci,
+FULLTEXT(a));
+INSERT INTO t1 VALUES(0xA3C2);
+DROP TABLE t1;