File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/query Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ class HqlQueryRenderer extends HqlBaseVisitor<QueryTokenStream> {
47
47
*
48
48
* @return boolean
49
49
*/
50
- static boolean isSubquery (ParserRuleContext ctx ) {
50
+ static boolean isSubquery (ParserRuleContext ctx ) {
51
51
52
52
while (ctx != null ) {
53
53
if (ctx instanceof HqlParser .SubqueryContext || ctx instanceof HqlParser .CteContext ) {
@@ -63,14 +63,15 @@ static boolean isSubquery(ParserRuleContext ctx) {
63
63
ctx = ctx .getParent ();
64
64
}
65
65
return false ;
66
- }
66
+ }
67
67
68
68
/**
69
69
* Is this AST tree a {@literal set} query that has been added through {@literal UNION|INTERSECT|EXCEPT}?
70
70
*
71
71
* @return boolean
72
72
*/
73
73
static boolean isSetQuery (ParserRuleContext ctx ) {
74
+
74
75
while (ctx != null ) {
75
76
ParserRuleContext parent = ctx .getParent ();
76
77
if (ctx instanceof HqlParser .OrderedQueryContext && parent instanceof HqlParser .QueryExpressionContext qec ) {
You can’t perform that action at this time.
0 commit comments