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 @@ -1990,9 +1990,13 @@ public QueryGroup visitQueryGroup(SqmQueryGroup<?> queryGroup) {
1990
1990
sqmQueryPartStack .push ( queryGroup );
1991
1991
pushProcessingState ( processingState );
1992
1992
1993
+ FromClauseIndex firstQueryPartIndex = null ;
1994
+ SqlAstProcessingState firstPoppedProcessingState = null ;
1993
1995
try {
1994
1996
newQueryParts .add ( visitQueryPart ( queryParts .get ( 0 ) ) );
1995
1997
1998
+ firstQueryPartIndex = lastPoppedFromClauseIndex ;
1999
+ firstPoppedProcessingState = lastPoppedProcessingState ;
1996
2000
collector .setSqmAliasedNodeCollector (
1997
2001
(SqmAliasedNodeCollector ) lastPoppedProcessingState .getSqlExpressionResolver ()
1998
2002
);
@@ -2010,6 +2014,8 @@ public QueryGroup visitQueryGroup(SqmQueryGroup<?> queryGroup) {
2010
2014
finally {
2011
2015
popProcessingStateStack ();
2012
2016
sqmQueryPartStack .pop ();
2017
+ lastPoppedFromClauseIndex = firstQueryPartIndex ;
2018
+ lastPoppedProcessingState = firstPoppedProcessingState ;
2013
2019
}
2014
2020
}
2015
2021
You can’t perform that action at this time.
0 commit comments