[jOOQ/jOOQ#9954] Incorrect SQL generated in DB2's INSERT INTO t .. RETURNING t.* emulation

This commit is contained in:
Lukas Eder 2020-03-12 17:22:40 +01:00
parent 7b503d90b6
commit 91b257f3b2
3 changed files with 1 additions and 8 deletions

View File

@ -63,6 +63,5 @@ package org.jooq;

View File

@ -1392,13 +1392,7 @@ final class SelectQueryImpl<R extends Record> extends AbstractResultQuery<R> imp
// [#....] Some SQL dialects do not require a FROM clause. Others do and
// jOOQ generates a "DUAL" table or something equivalent.
// See also org.jooq.impl.Dual for details.
boolean hasFrom = !getFrom().isEmpty()
|| REQUIRES_FROM_CLAUSE.contains(context.dialect())
;
boolean hasFrom = !getFrom().isEmpty() || REQUIRES_FROM_CLAUSE.contains(context.dialect());
List<Condition> semiAntiJoinPredicates = null;
ConditionProviderImpl where = getWhere();