[Groonga-mysql-commit] mroonga/mroonga at 9097538 [master] Support Groonga 7.0.2

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Apr 25 14:46:45 JST 2017


Kouhei Sutou	2017-04-25 14:46:45 +0900 (Tue, 25 Apr 2017)

  New Revision: 90975383ac4276cd1f2944c459924a48c0b1c8c5
  https://github.com/mroonga/mroonga/commit/90975383ac4276cd1f2944c459924a48c0b1c8c5

  Message:
    Support Groonga 7.0.2

  Modified files:
    lib/mrn_condition_converter.cpp

  Modified: lib/mrn_condition_converter.cpp (+8 -1)
===================================================================
--- lib/mrn_condition_converter.cpp    2017-04-13 16:57:05 +0900 (b325b1a)
+++ lib/mrn_condition_converter.cpp    2017-04-25 14:46:45 +0900 (2a9c250)
@@ -542,7 +542,14 @@ namespace mrn {
     append_const_item(field_item, max_item, expression);
     grn_expr_append_const(ctx_, expression, &include, GRN_OP_PUSH, 1);
 
-    grn_expr_append_op(ctx_, expression, GRN_OP_CALL, 5);
+    int call_n_args = 5;
+    // TODO: Remove this condition when we drop Groonga 7.0.1 or
+    // earlier support or Groonga 10 is released.
+    if (strcmp(grn_get_version(), "7.0.2") >= 0 ||
+        strcmp(grn_get_version(), "7.0.1-105-") >= 0) {
+      call_n_args++;
+    }
+    grn_expr_append_op(ctx_, expression, GRN_OP_CALL, call_n_args);
 
     grn_expr_append_op(ctx_, expression, GRN_OP_AND, 2);
 
-------------- next part --------------
HTML����������������������������...
Download 



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