mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1562 - Query cache use incorrect with RawExpression - incorrect bind hash
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user