Navigation Menu

Skip to content

Commit

Permalink
fix wrong length calculation in the first "+" workaround in boolean m…
Browse files Browse the repository at this point in the history
…ode.

Reported by 西山はじめ san. Thanks!!!
  • Loading branch information
kou committed Oct 22, 2011
1 parent 270aa82 commit 837467e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ha_mroonga.cc
Expand Up @@ -5182,7 +5182,7 @@ FT_INFO *ha_mroonga::generic_ft_init_ext(uint flags, uint key_nr, String *key)
// WORKAROUND: ignore the first '+' to support "+apple macintosh" pattern.
if (keyword_length > 0 && keyword[0] == '+') {
keyword++;
keyword_length++;
keyword_length--;
}
grn_expr_flags expression_flags = GRN_EXPR_SYNTAX_QUERY;
grn_rc rc;
Expand Down

0 comments on commit 837467e

Please sign in to comment.