#869 - Clash on bind hash value for query cache with consecutive values of "01","20" and "02", "10"

This commit is contained in:
Rob Bygrave
2016-11-07 23:47:29 +13:00
parent 5cf5629232
commit 376cb9ebcb
10 changed files with 12 additions and 13 deletions
@@ -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;
}