summaryrefslogtreecommitdiff
path: root/myisam
diff options
context:
space:
mode:
authorunknown <svoj@june.mysql.com>2007-07-02 12:31:34 +0500
committerunknown <svoj@june.mysql.com>2007-07-02 12:31:34 +0500
commita9b675e200673bb2bd6d28dcc64b6abe92c0a3db (patch)
tree343c4e19ba508c0f2e2dac11378240af5f0bef31 /myisam
parentffe19f62eb20c672d0982c80347d80533c4cc0bc (diff)
parent030d98d3971aaabbbeb37ed641629944a97186f5 (diff)
downloadmariadb-git-a9b675e200673bb2bd6d28dcc64b6abe92c0a3db.tar.gz
Merge mysql.com:/home/svoj/devel/bk/mysql-5.0-engines
into mysql.com:/home/svoj/devel/mysql/BUG29299/mysql-5.0-engines
Diffstat (limited to 'myisam')
-rw-r--r--myisam/ft_parser.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/myisam/ft_parser.c b/myisam/ft_parser.c
index 6c79f9249cf..6d68542e4e2 100644
--- a/myisam/ft_parser.c
+++ b/myisam/ft_parser.c
@@ -111,7 +111,7 @@ byte ft_get_word(CHARSET_INFO *cs, byte **start, byte *end,
while (doc<end)
{
- for (;doc<end;doc++)
+ for (; doc < end; doc+= mbl)
{
if (true_word_char(cs,*doc)) break;
if (*doc == FTB_RQUOT && param->quot)
@@ -120,6 +120,7 @@ byte ft_get_word(CHARSET_INFO *cs, byte **start, byte *end,
*start=doc+1;
return 3; /* FTB_RBR */
}
+ mbl= my_mbcharlen(cs, *(uchar *)doc);
if (!param->quot)
{
if (*doc == FTB_LBR || *doc == FTB_RBR || *doc == FTB_LQUOT)
@@ -187,10 +188,11 @@ byte ft_simple_get_word(CHARSET_INFO *cs, byte **start, const byte *end,
do
{
- for (;; doc++)
+ for (;; doc+= mbl)
{
if (doc >= end) DBUG_RETURN(0);
if (true_word_char(cs, *doc)) break;
+ mbl= my_mbcharlen(cs, *(uchar *)doc);
}
mwc= length= 0;