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: *

* * @author Lukas Eder diff --git a/jOOQ/src/main/java/org/jooq/exception/TooManyRowsException.java b/jOOQ/src/main/java/org/jooq/exception/TooManyRowsException.java index 08bad410be..61a016337c 100644 --- a/jOOQ/src/main/java/org/jooq/exception/TooManyRowsException.java +++ b/jOOQ/src/main/java/org/jooq/exception/TooManyRowsException.java @@ -34,10 +34,20 @@ */ package org.jooq.exception; +import org.jooq.InsertResultStep; import org.jooq.ResultQuery; /** * Too many rows (more than 1) were returned from a {@link ResultQuery}. + *

+ * 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 */