diff options
author | unknown <serg@serg.mylan> | 2003-11-13 12:54:53 +0100 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2003-11-13 12:54:53 +0100 |
commit | 9869bbd3bf4514c018b57ba899bd1dd64fee1c32 (patch) | |
tree | 9534675e656cd751542313d7f7fbbd03f855a0a5 /myisam | |
parent | 245cae241c15f3cb1302a42c8f83df2fe72f57ad (diff) | |
download | mariadb-git-9869bbd3bf4514c018b57ba899bd1dd64fee1c32.tar.gz |
followup to the ft+latin2 bugfix
Diffstat (limited to 'myisam')
-rw-r--r-- | myisam/ft_nlq_search.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/myisam/ft_nlq_search.c b/myisam/ft_nlq_search.c index 4f659216d98..3ddbe959cff 100644 --- a/myisam/ft_nlq_search.c +++ b/myisam/ft_nlq_search.c @@ -73,7 +73,7 @@ static int walk_and_match(FT_WORD *word, uint32 count, ALL_IN_ONE *aio) uchar *keybuff=aio->keybuff; MI_KEYDEF *keyinfo=info->s->keyinfo+aio->keynr; my_off_t key_root=info->s->state.key_root[aio->keynr]; - uint extra=HA_FT_WLEN+info->s->base.rec_reflength; + uint extra=HA_FT_WLEN+info->s->base.rec_reflength+1; #if HA_FT_WTYPE == HA_KEYTYPE_FLOAT float tmp_weight; #else @@ -96,7 +96,7 @@ static int walk_and_match(FT_WORD *word, uint32 count, ALL_IN_ONE *aio) if (keylen && mi_compare_text(aio->charset,info->lastkey+1, - info->lastkey_length-extra, keybuff+1,keylen,0)) + info->lastkey_length-extra, keybuff+1,keylen-1,0)) break; subkeys=ft_sintXkorr(info->lastkey+keylen); |