<!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 <kou****@clear*****></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
<dd style="margin-left: 8.5em">2016-07-01 14:30:31 +0900 (Fri, 01 Jul 2016)</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/83ade0f4c7521cbc47962a6043e1b5496927769c">83ade0f4c7521cbc47962a6043e1b5496927769c</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, "Liberation Mono", Courier, monospace; line-height: 1.2; padding: 0.5em; width: auto">storage count_skip: BETWEEN arguments exist in WHERE list on MySQL < 5.7</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/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2">ha_mroonga.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, "Liberation Mono", 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: ha_mroonga.cpp (+18 -4)</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, "Liberation Mono", 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/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2L9966">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2L9967">9967</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2L9968">9968</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2L9969">9969</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/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2L9970">9970</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/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2L9971">9971</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/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2L9972">9972</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2L9973">9973</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/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2L9974">9974</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2L9975">9975</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2L9976">9976</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2L9977">9977</a></span>
</pre>
</th>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", 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/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2R9966">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2R9967">9967</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2R9968">9968</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2R9969">9969</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2R9970">9970</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </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/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2R9971">9971</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/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2R9972">9972</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/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2R9973">9973</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/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2R9974">9974</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/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2R9975">9975</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/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2R9976">9976</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/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2R9977">9977</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/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2R9978">9978</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/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2R9979">9979</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/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2R9980">9980</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/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2R9981">9981</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/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2R9982">9982</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/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2R9983">9983</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/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2R9984">9984</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/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2R9985">9985</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/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2R9986">9986</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/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2R9987">9987</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/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2R9988">9988</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2R9989">9989</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2R9990">9990</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/83ade0f4c7521cbc47962a6043e1b5496927769c#diff-ba714ec217aa6836e39b3aea9da57ae2R9991">9991</a></span>
</pre>
</th>
<td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", 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">@@ -9967,11 +9967,25 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">void ha_mroonga::check_count_skip(key_part_map start_key_part_map,</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> case Item_func::LE_FUNC:</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> case Item_func::GE_FUNC:</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> case Item_func::GT_FUNC:</span>
<span class="diff-deleted" style="background-color: #ffecec; color: #000000; display: block; white-space: pre">- target = func_item->arguments()[0];</span>
<span class="diff-deleted" style="background-color: #ffecec; color: #000000; display: block; white-space: pre">- where = where->next->next;</span>
<span class="diff-deleted" style="background-color: #ffecec; color: #000000; display: block; white-space: pre">- break;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> case Item_func::BETWEEN:</span>
<span class="diff-deleted" style="background-color: #ffecec; color: #000000; display: block; white-space: pre">- target = func_item->arguments()[0];</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">+ Item **arguments = func_item->arguments();</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+ target = arguments[0];</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">+ uint n_arguments = func_item->argument_count();</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+ bool argument_in_where = false;</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+ for (uint i = 0; i < n_arguments; i++) {</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+ if (arguments[i] == where->next) {</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+ argument_in_where = true;</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+ break;</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">+ }</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+ if (argument_in_where) {</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+ for (uint i = 0; i < n_arguments; i++) {</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+ where = where->next;</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">+ }</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+ }</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> break;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> default:</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> target = NULL;</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>