mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-17 22:56:28 +00:00
#1615 - findNative() with List/array named parameter throws error ... query plan key doesn't take bind count into account
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user