Tutorial bug
This commit is contained in:
parent
b0fd96b1e3
commit
a31007d1cb
@ -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.
|
||||
|
||||
@ -263,7 +263,7 @@ Let's add a simple query:
|
||||
</p>
|
||||
<pre class="prettyprint lang-java">
|
||||
Executor create = new Executor(conn, SQLDialect.MYSQL);
|
||||
Result<Record> result = Executor.select().from(POSTS).fetch();
|
||||
Result<Record> result = create.select().from(POSTS).fetch();
|
||||
</pre>
|
||||
<p>
|
||||
First get an instance of <code>Factory</code> so we can write a simple
|
||||
|
||||
Loading…
Reference in New Issue
Block a user