[Groonga-mysql-commit] mroonga/mroonga at 7040aea [master] Unify simple conditions

Back to archive index

Kouhei Sutou null+****@clear*****
Wed May 15 17:12:56 JST 2013


Kouhei Sutou	2013-05-15 17:12:56 +0900 (Wed, 15 May 2013)

  New Revision: 7040aea4c4730d87475ae592ba28580d7172b112
  https://github.com/mroonga/mroonga/commit/7040aea4c4730d87475ae592ba28580d7172b112

  Message:
    Unify simple conditions

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+1 -3)
===================================================================
--- ha_mroonga.cpp    2013-05-15 17:11:19 +0900 (31d6a3c)
+++ ha_mroonga.cpp    2013-05-15 17:12:56 +0900 (22466bf)
@@ -7734,8 +7734,7 @@ grn_rc ha_mroonga::generic_ft_init_ext_prepare_expression_in_boolean_mode(
   keyword = keyword_original = key->ptr();
   keyword_length = keyword_length_original = key->length();
   // WORKAROUND: support only '*D+', '*D-' and '*DOR' pragma.
-  if (keyword_length > 1) {
-    if (keyword[0] == '*') {
+  if (keyword_length > 1 && keyword[0] == '*') {
       uint consumed_keyword_length = 0;
       switch (keyword[1]) {
       case 'D':
@@ -7751,7 +7750,6 @@ grn_rc ha_mroonga::generic_ft_init_ext_prepare_expression_in_boolean_mode(
       default:
         break;
       }
-    }
   }
   // WORKAROUND: ignore the first '+' to support "+apple macintosh" pattern.
   while (keyword_length > 0 && keyword[0] == ' ') {
-------------- next part --------------
HTML����������������������������...
下載 



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