mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-07 19:58:16 +00:00
HHH-9784 Scroll method does not support provided HQLQueryPlan
(cherry picked from commit 09127bf1c36cbe9a8e90f17508444d2565b95878)
This commit is contained in:
parent
3da8d8542f
commit
4fcb465311
@ -1344,7 +1344,12 @@ public Iterator iterate(String query, QueryParameters queryParameters) throws Hi
|
||||
public ScrollableResults scroll(String query, QueryParameters queryParameters) throws HibernateException {
|
||||
errorIfClosed();
|
||||
checkTransactionSynchStatus();
|
||||
HQLQueryPlan plan = getHQLQueryPlan( query, false );
|
||||
|
||||
HQLQueryPlan plan = queryParameters.getQueryPlan();
|
||||
if (plan == null) {
|
||||
plan = getHQLQueryPlan( query, false );
|
||||
}
|
||||
|
||||
autoFlushIfRequired( plan.getQuerySpaces() );
|
||||
dontFlushFromFind++;
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user