override equals hashcode

This commit is contained in:
tianzhen.wtz
2014-12-30 11:46:00 +08:00
parent 7e4296c9ab
commit 5b1a15a644
@@ -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