HHH-17076 - Numeric literal typing
This commit is contained in:
parent
ca3258b317
commit
f1fa09ab42
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue