[jOOQ/jOOQ#9196] Fix date arithmetic in Expression

Fixes chained invocations of `Field#add()` on a DATE or TIMESTAMP field,
where the problem was that `Expression` had an override of `Field#add()`
which didn't match up with its implementation of `accept()`.
This commit is contained in:
Knut Wannheden 2019-09-12 10:52:30 +02:00
parent 7761ac4ea8
commit 28677b252e

View File

@ -133,16 +133,6 @@ final class Expression<T> extends AbstractField<T> {
this.arguments = Tools.combine(lhs, rhs);
}
@Override
public final Field<T> add(Field<?> value) {
if (operator == ExpressionOperator.ADD) {
rhs.add(value);
return this;
}
return super.add(value);
}
@Override
public final Field<T> mul(Field<? extends Number> value) {
if (operator == ExpressionOperator.MULTIPLY) {