Tutorial bug

This commit is contained in:
Lukas Eder 2013-03-09 12:12:44 +01:00
parent b0fd96b1e3
commit a31007d1cb
2 changed files with 2 additions and 2 deletions

View File

@ -773,7 +773,7 @@ public class Main {
</p>
<java><![CDATA[Executor create = new Executor(conn, SQLDialect.MYSQL);
Result<Record> result = Executor.select().from(POSTS).fetch();]]></java>
Result<Record> result = create.select().from(POSTS).fetch();]]></java>
<p>
First get an instance of <code>Executor</code> so we can write a simple <code>SELECT</code> query. We pass an instance of the MySQL connection to <code>Executor</code>. Note that the executor doesn't close the connection. We'll have to do that ourselves.

View File

@ -263,7 +263,7 @@ Let's add a simple query:
</p>
<pre class="prettyprint lang-java">
Executor create = new Executor(conn, SQLDialect.MYSQL);
Result&lt;Record> result = Executor.select().from(POSTS).fetch();
Result&lt;Record> result = create.select().from(POSTS).fetch();
</pre>
<p>
First get an instance of <code>Factory</code> so we can write a simple