<!DOCTYPE html>
<html>
  <head>
  </head>
  <body>
    <dl style="line-height: 1.5; margin-left: 2em">
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Author</dt>
      <dd style="margin-left: 8.5em">Kouhei Sutou &lt;kou****@clear*****&gt;</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
      <dd style="margin-left: 8.5em">2017-04-25 14:46:45 +0900 (Tue, 25 Apr 2017)</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">New Revision</dt>
      <dd style="margin-left: 8.5em"><a href="https://github.com/mroonga/mroonga/commit/90975383ac4276cd1f2944c459924a48c0b1c8c5">90975383ac4276cd1f2944c459924a48c0b1c8c5</a></dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Message</dt>
      <dd style="margin-left: 8.5em"><pre style="border: 1px solid #aaa; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; padding: 0.5em; width: auto">Support Groonga 7.0.2</pre></dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Modified files</dt>
      <dd style="margin-left: 8.5em">
        <ul>
          <li><a href="https://github.com/mroonga/mroonga/commit/90975383ac4276cd1f2944c459924a48c0b1c8c5#diff-2815b764aada686b9fb03bcc6ae676b2">lib/mrn_condition_converter.cpp</a></li>
        </ul>
      </dd>
    </dl>

    <div class="diff-section" style="clear: both">
      <table style="border-collapse: collapse; border: 1px solid #aaa">
        <thead>
          <tr class="diff-header" style="border: 1px solid #aaa">
            <td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">  Modified: lib/mrn_condition_converter.cpp (+8 -1)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
            </td>
          </tr>
        </thead>
        <tbody>
          <tr>
            <th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/90975383ac4276cd1f2944c459924a48c0b1c8c5#diff-2815b764aada686b9fb03bcc6ae676b2L541">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/90975383ac4276cd1f2944c459924a48c0b1c8c5#diff-2815b764aada686b9fb03bcc6ae676b2L542">542</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/90975383ac4276cd1f2944c459924a48c0b1c8c5#diff-2815b764aada686b9fb03bcc6ae676b2L543">543</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/90975383ac4276cd1f2944c459924a48c0b1c8c5#diff-2815b764aada686b9fb03bcc6ae676b2L544">544</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffecec; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/90975383ac4276cd1f2944c459924a48c0b1c8c5#diff-2815b764aada686b9fb03bcc6ae676b2L545">545</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/90975383ac4276cd1f2944c459924a48c0b1c8c5#diff-2815b764aada686b9fb03bcc6ae676b2L546">546</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/90975383ac4276cd1f2944c459924a48c0b1c8c5#diff-2815b764aada686b9fb03bcc6ae676b2L547">547</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/90975383ac4276cd1f2944c459924a48c0b1c8c5#diff-2815b764aada686b9fb03bcc6ae676b2L548">548</a></span>
</pre>
            </th>
            <th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/90975383ac4276cd1f2944c459924a48c0b1c8c5#diff-2815b764aada686b9fb03bcc6ae676b2R541">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/90975383ac4276cd1f2944c459924a48c0b1c8c5#diff-2815b764aada686b9fb03bcc6ae676b2R542">542</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/90975383ac4276cd1f2944c459924a48c0b1c8c5#diff-2815b764aada686b9fb03bcc6ae676b2R543">543</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/90975383ac4276cd1f2944c459924a48c0b1c8c5#diff-2815b764aada686b9fb03bcc6ae676b2R544">544</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/90975383ac4276cd1f2944c459924a48c0b1c8c5#diff-2815b764aada686b9fb03bcc6ae676b2R545">545</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/90975383ac4276cd1f2944c459924a48c0b1c8c5#diff-2815b764aada686b9fb03bcc6ae676b2R546">546</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/90975383ac4276cd1f2944c459924a48c0b1c8c5#diff-2815b764aada686b9fb03bcc6ae676b2R547">547</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/90975383ac4276cd1f2944c459924a48c0b1c8c5#diff-2815b764aada686b9fb03bcc6ae676b2R548">548</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/90975383ac4276cd1f2944c459924a48c0b1c8c5#diff-2815b764aada686b9fb03bcc6ae676b2R549">549</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/90975383ac4276cd1f2944c459924a48c0b1c8c5#diff-2815b764aada686b9fb03bcc6ae676b2R550">550</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/90975383ac4276cd1f2944c459924a48c0b1c8c5#diff-2815b764aada686b9fb03bcc6ae676b2R551">551</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/90975383ac4276cd1f2944c459924a48c0b1c8c5#diff-2815b764aada686b9fb03bcc6ae676b2R552">552</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/90975383ac4276cd1f2944c459924a48c0b1c8c5#diff-2815b764aada686b9fb03bcc6ae676b2R553">553</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/90975383ac4276cd1f2944c459924a48c0b1c8c5#diff-2815b764aada686b9fb03bcc6ae676b2R554">554</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/90975383ac4276cd1f2944c459924a48c0b1c8c5#diff-2815b764aada686b9fb03bcc6ae676b2R555">555</a></span>
</pre>
            </th>
            <td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -542,7 +542,14 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">namespace mrn {</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">     append_const_item(field_item, max_item, expression);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     grn_expr_append_const(ctx_, expression, &amp;include, GRN_OP_PUSH, 1);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-deleted" style="background-color: #ffecec; color: #000000; display: block; white-space: pre">-    grn_expr_append_op(ctx_, expression, GRN_OP_CALL, 5);</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+    int call_n_args = 5;</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+    // TODO: Remove this condition when we drop Groonga 7.0.1 or</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+    // earlier support or Groonga 10 is released.</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+    if (strcmp(grn_get_version(), &quot;7.0.2&quot;) &gt;= 0 ||</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+        strcmp(grn_get_version(), &quot;7.0.1-105-&quot;) &gt;= 0) {</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+      call_n_args++;</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+    }</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+    grn_expr_append_op(ctx_, expression, GRN_OP_CALL, call_n_args);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre">     grn_expr_append_op(ctx_, expression, GRN_OP_AND, 2);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>