<!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">2011-12-19 17:03:47 +0900 (Mon, 19 Dec 2011)</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/f48c7e1dc8b77558353c30ae185ab8b3a3af9468">f48c7e1dc8b77558353c30ae185ab8b3a3af9468</a></dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Log</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">use INT8 for SET and ENUM.

But should we use INT16 or INT64?</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/f48c7e1dc8b77558353c30ae185ab8b3a3af9468#diff-0">ha_mroonga.cc</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"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">  Modified: ha_mroonga.cc (+6 -2)</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"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/f48c7e1dc8b77558353c30ae185ab8b3a3af9468#L0L566">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/f48c7e1dc8b77558353c30ae185ab8b3a3af9468#L0L567">567</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/f48c7e1dc8b77558353c30ae185ab8b3a3af9468#L0L568">568</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/f48c7e1dc8b77558353c30ae185ab8b3a3af9468#L0L569">569</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/f48c7e1dc8b77558353c30ae185ab8b3a3af9468#L0L570">570</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-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/f48c7e1dc8b77558353c30ae185ab8b3a3af9468#L0L571">571</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/f48c7e1dc8b77558353c30ae185ab8b3a3af9468#L0L572">572</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/f48c7e1dc8b77558353c30ae185ab8b3a3af9468#L0L573">573</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-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/f48c7e1dc8b77558353c30ae185ab8b3a3af9468#L0L574">574</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/f48c7e1dc8b77558353c30ae185ab8b3a3af9468#L0L575">575</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/f48c7e1dc8b77558353c30ae185ab8b3a3af9468#L0L576">576</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"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/f48c7e1dc8b77558353c30ae185ab8b3a3af9468#L0R566">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/f48c7e1dc8b77558353c30ae185ab8b3a3af9468#L0R567">567</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/f48c7e1dc8b77558353c30ae185ab8b3a3af9468#L0R568">568</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/f48c7e1dc8b77558353c30ae185ab8b3a3af9468#L0R569">569</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/f48c7e1dc8b77558353c30ae185ab8b3a3af9468#L0R570">570</a></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/f48c7e1dc8b77558353c30ae185ab8b3a3af9468#L0R571">571</a></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/f48c7e1dc8b77558353c30ae185ab8b3a3af9468#L0R572">572</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/f48c7e1dc8b77558353c30ae185ab8b3a3af9468#L0R573">573</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/f48c7e1dc8b77558353c30ae185ab8b3a3af9468#L0R574">574</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/f48c7e1dc8b77558353c30ae185ab8b3a3af9468#L0R575">575</a></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/f48c7e1dc8b77558353c30ae185ab8b3a3af9468#L0R576">576</a></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/f48c7e1dc8b77558353c30ae185ab8b3a3af9468#L0R577">577</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/f48c7e1dc8b77558353c30ae185ab8b3a3af9468#L0R578">578</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/f48c7e1dc8b77558353c30ae185ab8b3a3af9468#L0R579">579</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/f48c7e1dc8b77558353c30ae185ab8b3a3af9468#L0R580">580</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"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -567,10 +567,14 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">static grn_builtin_type mrn_grn_type_from_field(grn_ctx *ctx, Field *field,</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">     type = GRN_DB_SHORT_TEXT;   // 4Kbytes</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">   case MYSQL_TYPE_ENUM:         // ENUM; &lt;= 2bytes</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-    type = GRN_DB_INT16;        // 2bytes</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    type = GRN_DB_INT8;         // 1byte</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    // XXX: Should we use INT16?</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    // type = GRN_DB_INT16;        // 2bytes</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">   case MYSQL_TYPE_SET:          // SET; &lt;= 8bytes</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-    type = GRN_DB_INT64;        // 8bytes</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    type = GRN_DB_INT8;         // 1byte</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    // XXX: Should we use INT64?</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    // type = GRN_DB_INT64;        // 8bytes</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">   case MYSQL_TYPE_TINY_BLOB:    // TINYBLOB; &lt;= 256bytes</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     type = GRN_DB_SHORT_TEXT;   // 4Kbytes</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>