<!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-04-22 19:08:53 +0900 (Wed, 22 Apr 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/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a">394825f1ac04757c20d70e8eb7c668147ea4f57a</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">grn_obj_cast: return GRN_INVALID_ARGUMENT for not found record

It's not a problem but it may be backward incompatible...
How to test it...?</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/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#diff-0">lib/db.c</a></li>
          <li><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#diff-1">lib/expr.c</a></li>
          <li><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#diff-2">test/unit/core/test-cast-table.c</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/db.c (+10 -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; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0L5242">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0L5243">5243</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0L5244">5244</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0L5245">5245</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0L5246">5246</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-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0L5247">5247</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0L5248">5248</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0L5249">5249</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0L5252">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0L5253">5253</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0L5254">5254</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0L5255">5255</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0L5256">5256</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-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0L5257">5257</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0L5258">5258</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0L5259">5259</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/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0R5242">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0R5243">5243</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0R5244">5244</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0R5245">5245</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/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0R5246">5246</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0R5247">5247</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0R5248">5248</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0R5249">5249</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0R5250">5250</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0R5251">5251</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0R5252">5252</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0R5253">5253</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0R5256">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0R5257">5257</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0R5258">5258</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0R5259">5259</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/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0R5260">5260</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0R5261">5261</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0R5262">5262</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0R5263">5263</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0R5264">5264</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0R5265">5265</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0R5266">5266</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L0R5267">5267</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">@@ -5243,7 +5243,11 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">grn_obj_is_persistent(grn_ctx *ctx, grn_obj *obj)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">       if (GRN_BULK_VSIZE(p_key)) {\</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         id = addp ? grn_table_add_by_key(ctx, table, p_key, NULL)\</span>
<span class="diff-not-changed" style="display: block; white-space: pre">                   : grn_table_get_by_key(ctx, table, p_key);\</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-        if (id) { GRN_RECORD_SET(ctx, dest, id); }\</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        if (id) {\</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+          GRN_RECORD_SET(ctx, dest, id);\</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        } else {\</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+          rc = GRN_INVALID_ARGUMENT;\</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        }\</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       } else {\</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         GRN_RECORD_SET(ctx, dest, GRN_ID_NIL);\</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       }\</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -5253,7 +5257,11 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">grn_obj_is_persistent(grn_ctx *ctx, grn_obj *obj)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">       GRN_UINT32_INIT(&amp;record_id, 0);\</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       grn_obj_cast(ctx, src, &amp;record_id, GRN_TRUE);\</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       id = GRN_UINT32_VALUE(&amp;record_id);\</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-      if (id) { GRN_RECORD_SET(ctx, dest, id); }\</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+      if (id) {\</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        GRN_RECORD_SET(ctx, dest, id);\</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+      } else {\</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        rc = GRN_INVALID_ARGUMENT;\</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+      }\</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     }\</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   } else {\</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     rc = GRN_FUNCTION_NOT_IMPLEMENTED;\</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
      <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/expr.c (+1 -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; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L1L727">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L1L728">728</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L1L729">729</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L1L730">730</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L1L731">731</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L1L732">732</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/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L1L733">733</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L1L734">734</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L1L735">735</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/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L1R727">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L1R728">728</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L1R729">729</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L1R730">730</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-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L1R731">731</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L1R732">732</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L1R733">733</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L1R734">734</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">@@ -728,8 +728,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">grn_expr_append_obj_resolve_const(grn_ctx *ctx,</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">   grn_obj dest;</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_OBJ_INIT(&amp;dest, GRN_BULK, 0, to_domain);</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-  if (!grn_obj_cast(ctx, obj, &amp;dest, GRN_FALSE) &amp;&amp;</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-      GRN_BULK_VSIZE(&amp;dest) &gt; 0) {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  if (!grn_obj_cast(ctx, obj, &amp;dest, GRN_FALSE)) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     grn_obj_reinit(ctx, obj, to_domain, 0);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     grn_bulk_write(ctx, obj, GRN_BULK_HEAD(&amp;dest), GRN_BULK_VSIZE(&amp;dest));</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   }</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
      <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: test/unit/core/test-cast-table.c (+5 -3)</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/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2L121">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2L122">122</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2L123">123</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2L124">124</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2L125">125</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/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2L126">126</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2L127">127</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2L128">128</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2L129">129</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2L130">130</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2L131">131</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/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2L132">132</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2L133">133</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2L134">134</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2L153">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2L154">154</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2L155">155</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2L156">156</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2L157">157</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2L158">158</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2L159">159</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/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2L160">160</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2L161">161</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/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2L162">162</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2L163">163</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2L164">164</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/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2R121">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2R122">122</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2R123">123</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2R124">124</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/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2R125">125</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2R126">126</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2R127">127</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2R128">128</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2R129">129</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2R130">130</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/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2R131">131</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2R132">132</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2R133">133</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2R134">134</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2R135">135</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2R154">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2R155">155</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2R156">156</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2R157">157</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/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2R158">158</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2R159">159</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2R160">160</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2R161">161</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2R162">162</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2R163">163</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2R164">164</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2R165">165</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/394825f1ac04757c20d70e8eb7c668147ea4f57a#L2R166">166</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">@@ -122,13 +122,14 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">cut_teardown(void)</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"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> static void</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-cast_text(const gchar *text)</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+cast_text(grn_rc expected_rc, const gchar *text)</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_obj_reinit(&amp;context, &amp;src, GRN_DB_TEXT, 0);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   if (text) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     GRN_TEXT_PUTS(&amp;context, &amp;src, text);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   }</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-  grn_test_assert(grn_obj_cast(&amp;context, &amp;src, &amp;dest, GRN_FALSE));</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  grn_test_assert_equal_rc(expected_rc,</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+                           grn_obj_cast(&amp;context, &amp;src, &amp;dest, GRN_FALSE));</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> }</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> void</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -154,11 +155,12 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">test_text_to_table(gconstpointer data)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">   gsize expected_size;</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_obj_reinit(&amp;context, &amp;dest, users, 0);</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-  cast_text(gcut_data_get_string(data, &quot;text&quot;));</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   expected_size = gcut_data_get_size(data, &quot;expected-size&quot;);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   if (expected_size == 0) {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    cast_text(GRN_INVALID_ARGUMENT, gcut_data_get_string(data, &quot;text&quot;));</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     cut_assert_equal_uint(0, GRN_BULK_VSIZE(&amp;dest));</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   } else {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    cast_text(GRN_SUCCESS, gcut_data_get_string(data, &quot;text&quot;));</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     grn_test_assert_equal_record_id(&amp;context,</span>
<span class="diff-not-changed" style="display: block; white-space: pre">                                     grn_ctx_at(&amp;context, users),</span>
<span class="diff-not-changed" style="display: block; white-space: pre">                                     gcut_data_get_uint(data, &quot;expected&quot;),</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>