[Groonga-mysql-commit] mroonga/mroonga at 31abe5c [master] Fix wrong implementation for "*D-" pragma. refs #2099

Back to archive index

Kenji Maruyama null+****@clear*****
Fri Dec 13 16:08:18 JST 2013


Kenji Maruyama	2013-12-13 16:08:18 +0900 (Fri, 13 Dec 2013)

  New Revision: 31abe5c07354c9c76a40e547d73996a33e11f188
  https://github.com/mroonga/mroonga/commit/31abe5c07354c9c76a40e547d73996a33e11f188

  Message:
    Fix wrong implementation for "*D-" pragma. refs #2099

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+2 -1)
===================================================================
--- ha_mroonga.cpp    2013-12-13 16:07:18 +0900 (34bf26d)
+++ ha_mroonga.cpp    2013-12-13 16:08:18 +0900 (2d40923)
@@ -3,6 +3,7 @@
   Copyright(C) 2010 Tetsuro IKEDA
   Copyright(C) 2010-2013 Kentoku SHIBA
   Copyright(C) 2011-2013 Kouhei Sutou <kou �� clear-code.com>
+  Copyright(C) 2013 Kenji Maruyama <mmmaru777 �� gmail.com>
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
@@ -7381,7 +7382,7 @@ bool ha_mroonga::generic_ft_init_ext_parse_pragma_d(struct st_mrn_ft_info *info,
     *default_operator = GRN_OP_AND;
     *consumed_keyword_length = 1;
   } else if (keyword_length >= 1 && keyword[0] == '-') {
-    *default_operator = GRN_OP_OR;
+    *default_operator = GRN_OP_AND_NOT;
     *consumed_keyword_length = 1;
   } else if (keyword_length >= 2 && memcmp(keyword, "OR", 2) == 0) {
     *default_operator = GRN_OP_OR;
-------------- next part --------------
HTML����������������������������...
Download 



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