You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by fr...@apache.org on 2018/04/27 12:13:05 UTC

svn commit: r1830334 - /calcite/site/avatica/docs/go_client_reference.html

Author: francischuang
Date: Fri Apr 27 12:13:05 2018
New Revision: 1830334

URL: http://svn.apache.org/viewvc?rev=1830334&view=rev
Log:
Update go client reference

Modified:
    calcite/site/avatica/docs/go_client_reference.html

Modified: calcite/site/avatica/docs/go_client_reference.html
URL: http://svn.apache.org/viewvc/calcite/site/avatica/docs/go_client_reference.html?rev=1830334&r1=1830333&r2=1830334&view=diff
==============================================================================
--- calcite/site/avatica/docs/go_client_reference.html (original)
+++ calcite/site/avatica/docs/go_client_reference.html Fri Apr 27 12:13:05 2018
@@ -882,7 +882,7 @@ in your DSN is set to the same value as
 <p>The Go client comes with support for retrieving the error code when an error occurs. This is extremely useful when
 you want to take specific action when a particular type of error occurs.</p>
 
-<p>If the error returned is a ResponseError, calling the <code class="highlighter-rouge">Name()</code> method on the error will return the appropriate
+<p>If the error returned is a ResponseError, the <code class="highlighter-rouge">Name</code>field on the error will return the appropriate
 Apache Phoenix error code:</p>
 
 <figure class="highlight"><pre><code class="language-go" data-lang="go"><span class="n">_</span><span class="p">,</span><span class="x"> </span><span class="n">err</span><span class="x"> </span><span class="o">:=</span><span class="x"> </span><span class="n">db</span><span class="o">.</span><span class="n">Exec</span><span class="p">(</span><span class="s">"SELECT * FROM table_that_does_not_exist"</span><span class="p">)</span><span class="x"> </span><span class="c">// Query undefined table</span><span class="x">
@@ -896,7 +896,7 @@ Apache Phoenix error code:</p>
 </span><span class="p">}</span><span class="x">
 
 </span><span class="c">// Print the Apache Phoenix error code</span><span class="x">
-</span><span class="n">fmt</span><span class="o">.</span><span class="n">Println</span><span class="p">(</span><span class="n">perr</span><span class="o">.</span><span class="n">Name</span><span class="p">())</span><span class="x"> </span><span class="c">// Prints: table_undefined</span></code></pre></figure>
+</span><span class="n">fmt</span><span class="o">.</span><span class="n">Println</span><span class="p">(</span><span class="n">perr</span><span class="o">.</span><span class="n">Name</span><span class="p">)</span><span class="x"> </span><span class="c">// Prints: table_undefined</span></code></pre></figure>
 
 <h2 id="version-compatibility">Version Compatibility</h2>