ft-update bug fixed

myisam/ft_parser.c:
  cleanup
myisam/ft_update.c:
  bug fixed
mysql-test/mysql-test-run.sh:
  typo fixed
This commit is contained in:
unknown 2001-07-27 20:39:48 +02:00
commit 7c1e275715
3 changed files with 7 additions and 13 deletions

View file

@ -177,14 +177,7 @@ int _mi_ft_update(MI_INFO *info, uint keynr, byte *keybuf,
(uchar*) old_word->pos,old_word->len,
(uchar*) new_word->pos,new_word->len,0);
if (cmp==0)
{
double p=(old_word->weight-new_word->weight)/
(old_word->weight+new_word->weight);
if (p<1e-5)
cmp=0;
else
cmp=sgn(p);
}
cmp=sgn(old_word->weight-new_word->weight);
else
cmp=sgn(cmp);