<!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">2015-03-18 23:18:29 +0900 (Wed, 18 Mar 2015)</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/154f8ec94ae68cfb7db7c60bd57dee5704bf2472">154f8ec94ae68cfb7db7c60bd57dee5704bf2472</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">mysql57: simplify &quot;COUNT(*)&quot; only output check</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/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#diff-0">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, &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: ha_mroonga.cpp (+1 -5)</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/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0L216">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0L217">217</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0L218">218</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0L219">219</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0L220">220</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0L221">221</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0L222">222</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0L223">223</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0L224">224</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0L225">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0L226">226</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0L227">227</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0L228">228</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0L229">229</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0L230">230</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0L231">231</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0L232">232</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0L233">233</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0L9238">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0L9239">9239</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0L9240">9240</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0L9241">9241</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0L9242">9242</a></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/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0L9243">9243</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0L9244">9244</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0L9245">9245</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/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0R216">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0R217">217</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0R218">218</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0R219">219</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-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0R220">220</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0R221">221</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0R222">222</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0R223">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0R224">224</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0R225">225</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0R226">226</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-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0R227">227</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0R228">228</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0R229">229</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0R9234">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0R9235">9235</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0R9236">9236</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0R9237">9237</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: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0R9238">9238</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0R9239">9239</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0R9240">9240</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/154f8ec94ae68cfb7db7c60bd57dee5704bf2472#L0R9241">9241</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">@@ -217,8 +217,6 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">static mysql_mutex_t *mrn_LOCK_open;</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">   ((select_lex)-&gt;where_cond())</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> #  define MRN_SELECT_LEX_GET_HAVING_COND(select_lex) \</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   ((select_lex)-&gt;having_cond())</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-#  define MRN_SELECT_LEX_IS_AGG_FUNC_USED(select_lex) \</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-  ((select_lex)-&gt;agg_func_used())</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> #  define MRN_SELECT_LEX_GET_ACTIVE_OPTIONS(select_lex) \</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   ((select_lex)-&gt;active_options())</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> #else</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -226,8 +224,6 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">static mysql_mutex_t *mrn_LOCK_open;</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">   ((select_lex)-&gt;where)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> #  define MRN_SELECT_LEX_GET_HAVING_COND(select_lex) \</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   ((select_lex)-&gt;having)</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-#  define MRN_SELECT_LEX_IS_AGG_FUNC_USED(select_lex) \</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-  ((select_lex)-&gt;non_agg_fields.elements)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> #  define MRN_SELECT_LEX_GET_ACTIVE_OPTIONS(select_lex) \</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   ((select_lex)-&gt;options)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> #endif</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -9239,7 +9235,7 @@ <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"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre">   if (</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     thd_sql_command(ha_thd()) == SQLCOM_SELECT &amp;&amp;</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-    !MRN_SELECT_LEX_IS_AGG_FUNC_USED(select_lex) &amp;&amp;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    select_lex-&gt;item_list.elements == 1 &amp;&amp;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     !select_lex-&gt;group_list.elements &amp;&amp;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     !MRN_SELECT_LEX_GET_HAVING_COND(select_lex) &amp;&amp;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     select_lex-&gt;table_list.elements == 1</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>