diff --git a/jOOQ/src/main/java/org/jooq/impl/ParserImpl.java b/jOOQ/src/main/java/org/jooq/impl/ParserImpl.java index d6d51f1456..f5b2b933af 100644 --- a/jOOQ/src/main/java/org/jooq/impl/ParserImpl.java +++ b/jOOQ/src/main/java/org/jooq/impl/ParserImpl.java @@ -1352,6 +1352,9 @@ final class ParserImpl implements Parser { CombineOperator combine; while ((combine = parseCombineOperatorIf(ctx, false)) != null) { + ctx.scopeEnd(); + ctx.scopeStart(); + if (degree == null) degree = Tools.degree(result); @@ -1381,6 +1384,9 @@ final class ParserImpl implements Parser { CombineOperator combine; while ((combine = parseCombineOperatorIf(ctx, true)) != null) { + ctx.scopeEnd(); + ctx.scopeStart(); + if (degree == null) degree = Tools.degree(result);