[#5408] Optimistic locking doesn't work for PostgreSQL, Firebird, and Oracle
This commit is contained in:
parent
fbf2bba9c3
commit
a6ab96c4cc
@ -43,6 +43,7 @@ package org.jooq.impl;
|
||||
import static java.util.Arrays.asList;
|
||||
// ...
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.HSQLDB;
|
||||
// ...
|
||||
// ...
|
||||
// ...
|
||||
@ -484,7 +485,9 @@ abstract class AbstractDMLQuery<R extends Record> extends AbstractQuery {
|
||||
returned = returned.into(table);
|
||||
|
||||
// [#5366] HSQLDB currently doesn't support fetching updated records in UPDATE statements.
|
||||
if (returned.size() > 0) {
|
||||
// [#5408] Other dialects may fall through the switch above (PostgreSQL, Firebird, Oracle) and must
|
||||
// execute this logic
|
||||
if (returned.size() > 0 || ctx.family() != HSQLDB) {
|
||||
result = returned.size();
|
||||
ctx.rows(result);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user