#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
@@ -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;
}