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:
Lukas Eder 2024-07-11 09:30:32 +02:00
parent fc400a3ab8
commit 021dff0c52

View File

@ -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);