#1502 - findNative build query to findPagedList, the query count is incorrect.

This commit is contained in:
rob bygrave committed 2018-10-05 12:22:25 +13:00
1 parent da95ec0c05
commit 54b5684628
2 files changed
+81 -1

No files matched your search

@@ -1051,7 +1051,7 @@ public class DefaultOrmQuery<T> implements SpiQuery<T> {
CQueryPlanKey createQueryPlanKey() {
if (isNativeSql()) {
queryPlanKey = new NativeSqlQueryPlanKey(nativeSql + "-" + firstRow + "-" + maxRows);
queryPlanKey = new NativeSqlQueryPlanKey(type.ordinal() + nativeSql + "-" + firstRow + "-" + maxRows);
} else {
queryPlanKey = new OrmQueryPlanKey(planDescription(), maxRows, firstRow, rawSql);
}