[jOOQ/jOOQ#14965] Java 8 fix
Java 8 seemingly cannot infer the Exception type to be a RuntimeException (yet), so the functional approach won't work, regrettably.
This commit is contained in:
parent
fc400a3ab8
commit
021dff0c52
@ -629,7 +629,21 @@ final class SelectQueryImpl<R extends Record> extends AbstractResultQuery<R> imp
|
||||
}
|
||||
|
||||
if (CopyClause.UNION.between(start, end)) {
|
||||
result.union.addAll(map(union, l -> new QueryPartList<>(map(l, (Select<?> s) -> apply(selectQueryImpl(s), q -> q.copy(x -> {}))))));
|
||||
for (QueryPartList<Select<?>> u : union) {
|
||||
QueryPartList<Select<?>> l = new QueryPartList<>();
|
||||
|
||||
for (Select<?> s : u) {
|
||||
SelectQueryImpl<?> q = selectQueryImpl(s);
|
||||
|
||||
if (q != null)
|
||||
q = q.copy(x -> {});
|
||||
|
||||
l.add(q);
|
||||
}
|
||||
|
||||
result.union.add(l);
|
||||
}
|
||||
|
||||
result.unionOp.addAll(unionOp);
|
||||
result.unionOrderBy.addAll(unionOrderBy);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user