mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#869 - Clash on bind hash value for query cache with consecutive values of "01","20" and "02", "10"
This commit is contained in:
+1
-1
@@ -52,7 +52,7 @@ public class ArrayContainsExpression extends AbstractExpression {
|
||||
public int queryBindHash() {
|
||||
int hc = values[0].hashCode();
|
||||
for (int i = 1; i < values.length; i++) {
|
||||
hc = hc * 31 + values[i].hashCode();
|
||||
hc = hc * 92821 + values[i].hashCode();
|
||||
}
|
||||
return hc;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user