[jOOQ/jOOQ#19188] Select::$replace doesn't maintain SELECT .. INTO clause

This commit is contained in:
Lukas Eder 2025-10-10 11:03:27 +02:00
parent 69d863d2eb
commit 97ee239bb9

View File

@ -584,6 +584,10 @@ final class SelectQueryImpl<R extends Record> extends AbstractResultQuery<R> imp
private final SelectQueryImpl<R> copyBetween(CopyClause start, CopyClause end, boolean scalarSelect, SelectQueryImpl<R> result) {
if (CopyClause.START.between(start, end)) {
result.intoTable = intoTable;
if (intoVariables != null)
result.intoVariables = new QueryPartList<>(intoVariables);
result.from.addAll(from);
result.condition.setWhere(condition.getWhere());
@ -5767,6 +5771,10 @@ final class SelectQueryImpl<R extends Record> extends AbstractResultQuery<R> imp