From efe80c02a79945e7283f6c47c264eb8c4ac067d2 Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Fri, 16 Mar 2012 12:13:22 +0000 Subject: [PATCH] [#1232] SQLException when Factory.fetch() does not return a ResultSet --- .../main/java/org/jooq/FactoryOperations.java | 24 ++++++++++++++----- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/jOOQ/src/main/java/org/jooq/FactoryOperations.java b/jOOQ/src/main/java/org/jooq/FactoryOperations.java index fbc27d7b9b..798a17e600 100644 --- a/jOOQ/src/main/java/org/jooq/FactoryOperations.java +++ b/jOOQ/src/main/java/org/jooq/FactoryOperations.java @@ -942,7 +942,9 @@ public interface FactoryOperations extends Configuration { * escape literals when concatenated into SQL clauses! * * @param sql The SQL - * @return The results from the executed query + * @return The results from the executed query. This is never + * null, even if the database returns no + * {@link ResultSet} * @throws DataAccessException if something went wrong executing the query */ @Support @@ -968,7 +970,9 @@ public interface FactoryOperations extends Configuration { * * @param sql The SQL * @param bindings The bindings - * @return A query wrapping the plain SQL + * @return The results from the executed query. This is never + * null, even if the database returns no + * {@link ResultSet} * @throws DataAccessException if something went wrong executing the query */ @Support @@ -989,7 +993,9 @@ public interface FactoryOperations extends Configuration { * escape literals when concatenated into SQL clauses! * * @param sql The SQL - * @return The results from the executed query + * @return The results from the executed query. This is never + * null, even if the database returns no + * {@link ResultSet} * @throws DataAccessException if something went wrong executing the query */ @Support @@ -1012,7 +1018,9 @@ public interface FactoryOperations extends Configuration { * * @param sql The SQL * @param bindings The bindings - * @return A query wrapping the plain SQL + * @return The results from the executed query. This is never + * null, even if the database returns no + * {@link ResultSet} * @throws DataAccessException if something went wrong executing the query */ @Support @@ -1036,7 +1044,9 @@ public interface FactoryOperations extends Configuration { * escape literals when concatenated into SQL clauses! * * @param sql The SQL - * @return The results from the executed query + * @return The results from the executed query. This is never + * null, even if the database returns no + * {@link ResultSet} * @throws DataAccessException if something went wrong executing the query */ @Support @@ -1062,7 +1072,9 @@ public interface FactoryOperations extends Configuration { * * @param sql The SQL * @param bindings The bindings - * @return A query wrapping the plain SQL + * @return The results from the executed query. This is never + * null, even if the database returns no + * {@link ResultSet} * @throws DataAccessException if something went wrong executing the query */ @Support