diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/function/IntegralTimestampaddFunction.java b/hibernate-core/src/main/java/org/hibernate/dialect/function/IntegralTimestampaddFunction.java index 919f119eae..7304ce1900 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/function/IntegralTimestampaddFunction.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/function/IntegralTimestampaddFunction.java @@ -121,7 +121,7 @@ public class IntegralTimestampaddFunction private TemporalUnit bestTemporalUnit(Expression magnitude, DurationUnit field) { final JdbcType jdbcType = magnitude.getExpressionType().getSingleJdbcMapping().getJdbcType(); - if ( jdbcType.isFloat() || jdbcType.isDecimal() ) { + if ( jdbcType.isFloat() ) { // We need to multiply the magnitude by the conversion factor and cast to int // Use second by default and nanosecond if we encounter fractional seconds return field.getUnit() == TemporalUnit.SECOND