From 65575f94d1dad0d130f3180e5bafa71eb6be1bcd Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 12 Apr 2001 00:54:35 +0300 Subject: Added SQL_CALC_FOUND_ROWS and FOUND_ROWS() myisam/ft_boolean_search.c: Cleanup myisam/ft_parser.c: Cleanup myisam/ft_update.c: Cleanup myisam/sort.c: Cleanup BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted --- myisam/ft_parser.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'myisam/ft_parser.c') diff --git a/myisam/ft_parser.c b/myisam/ft_parser.c index d1daa581446..09c93d7dc5b 100644 --- a/myisam/ft_parser.c +++ b/myisam/ft_parser.c @@ -161,7 +161,7 @@ byte ft_get_word(byte **start, byte *end, FT_WORD *word, FTB_PARAM *param) param->prev='A'; // be sure *prev is true_word_char word->len= (uint)(doc-word->pos) - mwc; - if (param->trunc=(doctrunc=(doclen >= MIN_WORD_LEN && word->len < MAX_WORD_LEN && @@ -221,7 +221,6 @@ int is_boolean(byte *q, uint len) TREE * ft_parse(TREE *wtree, byte *doc, int doclen) { byte *end=doc+doclen; - int res; FT_WORD w; if (!is_tree_inited(wtree)) @@ -229,7 +228,7 @@ TREE * ft_parse(TREE *wtree, byte *doc, int doclen) init_tree(wtree,0,sizeof(FT_WORD),(qsort_cmp)&FT_WORD_cmp,0,NULL); } - while (res=ft_simple_get_word(&doc,end,&w)) + while (ft_simple_get_word(&doc,end,&w)) { if (!tree_insert(wtree, &w, 0)) goto err; -- cgit v1.2.1