<!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">susumu.yata &lt;susum****@gmail*****&gt;</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
      <dd style="margin-left: 8.5em">2015-04-07 22:11:45 +0900 (Tue, 07 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/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3">3bbd51b1f4db96ada04ebce702e945d43a5e32b3</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">Gnx: fix a bug that Text columns are broken.</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/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#diff-0">go2/gnx/gnx.go</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: go2/gnx/gnx.go (+11 -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/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L11">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L12">12</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L13">13</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L14">14</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/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L15">15</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/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L16">16</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L17">17</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L18">18</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L374">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L375">375</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L376">376</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L377">377</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/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L378">378</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/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L379">379</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L380">380</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L381">381</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/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L382">382</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/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L383">383</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/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L384">384</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L385">385</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L386">386</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L389">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L390">390</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L391">391</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L392">392</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/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L393">393</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/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L394">394</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L395">395</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L396">396</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/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L397">397</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/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L398">398</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/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L399">399</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L400">400</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0L401">401</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/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R11">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R12">12</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R13">13</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R14">14</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/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R15">15</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R16">16</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R17">17</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R18">18</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R374">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R375">375</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R376">376</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R377">377</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/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R378">378</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R379">379</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R380">380</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R381">381</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/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R382">382</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/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R383">383</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/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R384">384</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R385">385</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/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R386">386</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R387">387</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R388">388</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R389">389</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R392">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R393">393</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R394">394</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R395">395</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/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R396">396</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R397">397</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R398">398</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R399">399</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/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R400">400</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/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R401">401</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/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R402">402</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R403">403</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/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R404">404</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R405">405</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R406">406</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grnxx/commit/3bbd51b1f4db96ada04ebce702e945d43a5e32b3#L0R407">407</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">@@ -12,7 +12,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">import &quot;C&quot;</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"> import (</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         &quot;encoding/binary&quot;</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-        &quot;encoding/json&quot; // FIXME</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        &quot;encoding/json&quot;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         &quot;fmt&quot;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         &quot;hash/fnv&quot;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         &quot;io/ioutil&quot;</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -375,12 +375,15 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">func (db *GroongaDB) QueryEx(</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"> func (db *GroongaDB) load(</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         tableName string, columnNames []string, records [][]Valuer) (int, error) {</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-        jsonRecords, err := json.Marshal(records)</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        jsonBytes, err := json.Marshal(records)</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         if err != nil {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">                 return 0, err</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         }</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        jsonString := string(jsonBytes)</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        jsonString = strings.Replace(jsonString, &quot;\\&quot;, &quot;\\\\&quot;, -1)</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        jsonString = strings.Replace(jsonString, &quot;'&quot;, &quot;\\'&quot;, -1)</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         command := fmt.Sprintf(&quot;load --table '%s' --columns '%s' --values '%s'&quot;,</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-                tableName, strings.Join(columnNames, &quot;,&quot;), string(jsonRecords))</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+                tableName, strings.Join(columnNames, &quot;,&quot;), jsonString)</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         bytes, err := db.Query(command)</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         if err != nil {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">                 return 0, err</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -390,12 +393,15 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">func (db *GroongaDB) load(</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"> func (db *GroongaDB) loadMap(</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         tableName string, recordMaps []map[string]Valuer) (int, error) {</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-        jsonRecords, err := json.Marshal(recordMaps)</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        jsonBytes, err := json.Marshal(recordMaps)</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         if err != nil {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">                 return 0, err</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         }</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        jsonString := string(jsonBytes)</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        jsonString = strings.Replace(jsonString, &quot;\\&quot;, &quot;\\\\&quot;, -1)</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        jsonString = strings.Replace(jsonString, &quot;'&quot;, &quot;\\'&quot;, -1)</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         command := fmt.Sprintf(&quot;load --table '%s' --values '%s'&quot;,</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-                tableName, string(jsonRecords))</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+                tableName, jsonString)</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         bytes, err := db.Query(command)</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         if err != nil {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">                 return 0, err</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>