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
-2
@@ -230,9 +230,8 @@ public class DefaultExampleExpression implements SpiExpression, ExampleExpressio
|
||||
public int queryBindHash() {
|
||||
int hc = DefaultExampleExpression.class.getName().hashCode();
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
hc = hc * 31 + list.get(i).queryBindHash();
|
||||
hc = hc * 92821 + list.get(i).queryBindHash();
|
||||
}
|
||||
|
||||
return hc;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user