From 3ec7707b7e79c5edd1de49e11ff6dc7f96d2cd14 Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Wed, 23 Sep 2020 17:16:53 +0200 Subject: [PATCH] [jOOQ/jOOQ#9017] Add Settings.transformRownumToLimit - Don't copy pro attributes --- .../java/org/jooq/impl/SelectQueryImpl.java | 31 +++++++++++++------ 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/jOOQ/src/main/java/org/jooq/impl/SelectQueryImpl.java b/jOOQ/src/main/java/org/jooq/impl/SelectQueryImpl.java index 3bf0f2b18e..feb6143a29 100644 --- a/jOOQ/src/main/java/org/jooq/impl/SelectQueryImpl.java +++ b/jOOQ/src/main/java/org/jooq/impl/SelectQueryImpl.java @@ -382,14 +382,20 @@ final class SelectQueryImpl extends AbstractResultQuery imp SelectQueryImpl result = new SelectQueryImpl<>(configuration(), with); result.condition.setWhere(condition.getWhere()); - result.connectBy.setWhere(connectBy.getWhere()); - result.connectByNoCycle = connectByNoCycle; - result.connectByStartWith.setWhere(connectByStartWith.getWhere()); + + + + + result.distinct = distinct; result.distinctOn = distinctOn; - result.forJSON = forJSON; + + + + + + result.forLock = forLock; - result.forXML = forXML; result.from.addAll(from); result.groupBy = groupBy; result.grouping = grouping; @@ -400,7 +406,9 @@ final class SelectQueryImpl extends AbstractResultQuery imp result.option = option; result.orderBy.addAll(orderBy); - result.orderBySiblings = orderBySiblings; + + + result.qualify.setWhere(qualify.getWhere()); result.seek.addAll(seek); result.select.addAll(select); @@ -410,14 +418,19 @@ final class SelectQueryImpl extends AbstractResultQuery imp result.unionLimit.from(unionLimit); result.unionOp.addAll(unionOp); result.unionOrderBy.addAll(unionOrderBy); - result.unionOrderBySiblings = unionOrderBySiblings; + + + result.unionSeek.addAll(unionSeek); result.unionSeekBefore = unionSeekBefore; if (window != null) result.addWindow(window); - result.withCheckOption = withCheckOption; - result.withReadOnly = withReadOnly; + + + + + return result; }