From a31007d1cb4a6cef77b561e3f83d61bd2e1b2fff Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Sat, 9 Mar 2013 12:12:44 +0100 Subject: [PATCH] Tutorial bug --- jOOQ-website/src/main/resources/manual-3.0.xml | 2 +- jOOQ-website/tutorial.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jOOQ-website/src/main/resources/manual-3.0.xml b/jOOQ-website/src/main/resources/manual-3.0.xml index 5e0367690b..62b6ea8e04 100644 --- a/jOOQ-website/src/main/resources/manual-3.0.xml +++ b/jOOQ-website/src/main/resources/manual-3.0.xml @@ -773,7 +773,7 @@ public class Main {

result = Executor.select().from(POSTS).fetch();]]> +Result result = create.select().from(POSTS).fetch();]]>

First get an instance of Executor so we can write a simple SELECT query. We pass an instance of the MySQL connection to Executor. Note that the executor doesn't close the connection. We'll have to do that ourselves. diff --git a/jOOQ-website/tutorial.php b/jOOQ-website/tutorial.php index 53dcff8b46..aee1e11ed3 100644 --- a/jOOQ-website/tutorial.php +++ b/jOOQ-website/tutorial.php @@ -263,7 +263,7 @@ Let's add a simple query:

 Executor create = new Executor(conn, SQLDialect.MYSQL);
-Result<Record> result = Executor.select().from(POSTS).fetch();
+Result<Record> result = create.select().from(POSTS).fetch();
 

First get an instance of Factory so we can write a simple