mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
override equals hashcode
This commit is contained in:
@@ -31,12 +31,19 @@ public class PGIntervalExpr extends SQLExprImpl implements SQLLiteralExpr,PGExpr
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
return false;
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
PGIntervalExpr that = (PGIntervalExpr) o;
|
||||
|
||||
if (value != null ? !value.equals(that.value) : that.value != null) return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return 0;
|
||||
return value != null ? value.hashCode() : 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user