diff --git a/jOOQ/src/main/java/org/jooq/impl/SelectQueryImpl.java b/jOOQ/src/main/java/org/jooq/impl/SelectQueryImpl.java index 22969a7869..3f98adb469 100644 --- a/jOOQ/src/main/java/org/jooq/impl/SelectQueryImpl.java +++ b/jOOQ/src/main/java/org/jooq/impl/SelectQueryImpl.java @@ -2264,6 +2264,9 @@ final class SelectQueryImpl extends AbstractResultQuery imp .visit(K_FROM).sqlIndentStart(" (") .subquery(true); + // [#18234] Re-push window specifications to the new subquery scope + pushWindow(ctx); + // [#13560] [#17947] Communicate the enforcement of MULTISET content to the CursorImpl. if (ctx.executeContext() != null) ctx.executeContext().data(DATA_MULTISET_CONTENT, true);