diff --git a/jOOQ/src/main/java/org/jooq/exception/InvalidResultException.java b/jOOQ/src/main/java/org/jooq/exception/InvalidResultException.java index 9210e4decd..ccf901a93f 100644 --- a/jOOQ/src/main/java/org/jooq/exception/InvalidResultException.java +++ b/jOOQ/src/main/java/org/jooq/exception/InvalidResultException.java @@ -42,18 +42,20 @@ import org.jooq.UpdatableRecord; /** * An unexpected result was encountered after executing a {@link Query}. This * exception indicates wrong usage of jOOQ's various fetch methods, or an - * integrity problem in your data. + * integrity problem in your data after query execution, meaning that + * the execution of the query in the database is not affected. *
* This is typically the case in the following situations: *
+ * Like any other {@link InvalidResultException}, this exception indicates to
+ * clients that the result was not what they expected, but this does not have
+ * any effect on the outcome of the statement producing that result. For
+ * instance, if calling {@link ResultQuery#fetchOne()} on a
+ * SELECT .. FOR UPDATE query, or
+ * {@link InsertResultStep#fetchOne()} on an INSERT statement, the
+ * database change will still be executed: the rows will still be locked or
+ * inserted.
*
* @author Lukas Eder
*/