HHH-17076 - Numeric literal typing

This commit is contained in:
Steve Ebersole 2023-08-17 12:15:07 -05:00
parent ca3258b317
commit f1fa09ab42
1 changed files with 1 additions and 1 deletions

View File

@ -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