diff options
author | unknown <svoj@april.(none)> | 2006-01-23 20:07:26 +0400 |
---|---|---|
committer | unknown <svoj@april.(none)> | 2006-01-23 20:07:26 +0400 |
commit | dde3f7275ba4ed065f82e74be6d3f99bc671c176 (patch) | |
tree | 164568c772c9b83119a7b2ab7a09ba1172bd2a74 | |
parent | 2bdcc1714e2c84e5d4dcd21ad27c459d3a7b79b6 (diff) | |
parent | 0ee28e1a4daca25f85ced473b2014e868ae341f8 (diff) | |
download | mariadb-git-dde3f7275ba4ed065f82e74be6d3f99bc671c176.tar.gz |
Merge april.(none):/home/svoj/devel/mysql/BUG16489/mysql-4.1
into april.(none):/home/svoj/devel/mysql/BUG16489/mysql-5.0
myisam/ft_update.c:
Auto merged
mysql-test/r/fulltext2.result:
Auto merged
-rw-r--r-- | myisam/ft_update.c | 4 | ||||
-rw-r--r-- | mysql-test/r/fulltext2.result | 5 | ||||
-rw-r--r-- | mysql-test/t/fulltext2.test | 8 |
3 files changed, 17 insertions, 0 deletions
diff --git a/myisam/ft_update.c b/myisam/ft_update.c index b8cd925bf4f..7fa86094144 100644 --- a/myisam/ft_update.c +++ b/myisam/ft_update.c @@ -168,6 +168,10 @@ int _mi_ft_cmp(MI_INFO *info, uint keynr, const byte *rec1, const byte *rec2) FT_SEG_ITERATOR ftsi1, ftsi2; CHARSET_INFO *cs=info->s->keyinfo[keynr].seg->charset; DBUG_ENTER("_mi_ft_cmp"); +#ifndef MYSQL_HAS_TRUE_CTYPE_IMPLEMENTATION + if (cs->mbmaxlen > 1) + DBUG_RETURN(THOSE_TWO_DAMN_KEYS_ARE_REALLY_DIFFERENT); +#endif _mi_ft_segiterator_init(info, keynr, rec1, &ftsi1); _mi_ft_segiterator_init(info, keynr, rec2, &ftsi2); diff --git a/mysql-test/r/fulltext2.result b/mysql-test/r/fulltext2.result index 72c6b2d22ed..f6a4b20bc22 100644 --- a/mysql-test/r/fulltext2.result +++ b/mysql-test/r/fulltext2.result @@ -234,5 +234,10 @@ insert into t1 values('test test '),('test'),('test'),('test'), ('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test'), ('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test'); delete from t1 limit 1; +truncate table t1; +insert into t1 values('ab c d'); +update t1 set a='ab c d'; +select * from t1 where match a against('ab c' in boolean mode); +a drop table t1; set names latin1; diff --git a/mysql-test/t/fulltext2.test b/mysql-test/t/fulltext2.test index 7a7b572d58f..fd97f795534 100644 --- a/mysql-test/t/fulltext2.test +++ b/mysql-test/t/fulltext2.test @@ -209,6 +209,14 @@ insert into t1 values('test test '),('test'),('test'),('test'), ('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test'), ('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test'); delete from t1 limit 1; + +# +# BUG#16489: utf8 + fulltext leads to corrupt index file. +# +truncate table t1; +insert into t1 values('ab c d'); +update t1 set a='ab c d'; +select * from t1 where match a against('ab c' in boolean mode); drop table t1; set names latin1; |