File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
hibernate-core/src/main/java/org/hibernate/query/sqm/sql Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1982,9 +1982,13 @@ public QueryGroup visitQueryGroup(SqmQueryGroup<?> queryGroup) {
1982
1982
sqmQueryPartStack .push ( queryGroup );
1983
1983
pushProcessingState ( processingState );
1984
1984
1985
+ FromClauseIndex firstQueryPartIndex = null ;
1986
+ SqlAstProcessingState firstPoppedProcessingState = null ;
1985
1987
try {
1986
1988
newQueryParts .add ( visitQueryPart ( queryParts .get ( 0 ) ) );
1987
1989
1990
+ firstQueryPartIndex = lastPoppedFromClauseIndex ;
1991
+ firstPoppedProcessingState = lastPoppedProcessingState ;
1988
1992
collector .setSqmAliasedNodeCollector (
1989
1993
(SqmAliasedNodeCollector ) lastPoppedProcessingState .getSqlExpressionResolver ()
1990
1994
);
@@ -2002,6 +2006,8 @@ public QueryGroup visitQueryGroup(SqmQueryGroup<?> queryGroup) {
2002
2006
finally {
2003
2007
popProcessingStateStack ();
2004
2008
sqmQueryPartStack .pop ();
2009
+ lastPoppedFromClauseIndex = firstQueryPartIndex ;
2010
+ lastPoppedProcessingState = firstPoppedProcessingState ;
2005
2011
}
2006
2012
}
2007
2013
You can’t perform that action at this time.
0 commit comments