[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] fix wrong length calculation in the first "+" workaround in boolean mode.

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 4 10:54:36 JST 2012


Kouhei Sutou	2011-10-22 10:57:44 +0900 (Sat, 22 Oct 2011)

  New Revision: 837467ed9c64e8d50ef1a1e2ef7314e5fe1aea10
  https://github.com/mroonga/mroonga/commit/837467ed9c64e8d50ef1a1e2ef7314e5fe1aea10

  Log:
    fix wrong length calculation in the first "+" workaround in boolean mode.
    
    Reported by 西山はじめ san. Thanks!!!

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+1 -1)
===================================================================
--- ha_mroonga.cc    2011-10-20 18:19:34 +0900 (84e2d72)
+++ ha_mroonga.cc    2011-10-22 10:57:44 +0900 (06990c5)
@@ -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;
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-mysql-commit mailing list
Back to archive index