#1615 - findNative() with List/array named parameter throws error ... query plan key doesn't take bind count into account

This commit is contained in:
rob bygrave committed 2019-01-22 01:56:58 +13:00
1 parent ef3d911e19
commit b8105190d1
2 files changed
+21 -2

No files matched your search

@@ -1069,9 +1069,9 @@ public class DefaultOrmQuery<T> implements SpiQuery<T> {
* Calculate the query hash for either AutoTune query tuning or Query Plan caching.
*/
CQueryPlanKey createQueryPlanKey() {
if (isNativeSql()) {
queryPlanKey = new NativeSqlQueryPlanKey(type.ordinal() + nativeSql + "-" + firstRow + "-" + maxRows);
String bindHash = (bindParams == null) ? "" : bindParams.calcQueryPlanHash();
queryPlanKey = new NativeSqlQueryPlanKey(type.ordinal() + nativeSql + "-" + firstRow + "-" + maxRows + "-" + bindHash);
} else {
queryPlanKey = new OrmQueryPlanKey(planDescription(), maxRows, firstRow, rawSql);
}