Improved JdbcSelectExecutorStandardImpl#getResultSize() method

This commit is contained in:
Andrea Boriero 2021-09-24 16:38:27 +02:00
parent 573d146046
commit 4a0351b157
1 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,7 @@ public class JdbcSelectExecutorStandardImpl implements JdbcSelectExecutor {
if ( result instanceof List ) {
return ( (List) result ).size();
}
return ( (ScrollableResultsImplementor) result ).getRowNumber();
return -1;
}
@SuppressWarnings("unchecked")