#1562 - Query cache use incorrect with RawExpression - incorrect bind hash

This commit is contained in:
rob bygrave
2018-11-29 09:54:24 +13:00
parent 211f28eea3
commit 70e2b1c2ae
3 changed files with 86 additions and 1 deletions
@@ -74,7 +74,11 @@ class RawExpression extends NonPrepareExpression {
@Override
public int queryBindHash() {
return sql.hashCode();
int hc = sql.hashCode();
for (Object value : values) {
hc = hc * 92821 + value.hashCode();
}
return hc;
}
@Override