Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,12 @@ public static IntervalType buildInterval(BigDecimal value0, IntervalType value1)
((IntervalHourType.IntervalHour) value1).elementType
);
} else if (value1 instanceof IntervalMinuteType.IntervalMinute) {
return new IntervalHourType.IntervalHour(
return new IntervalMinuteType.IntervalMinute(
new BigDecimal(Math.multiplyExact(value0.longValue(), 60 * 1000)),
((IntervalMinuteType.IntervalMinute) value1).elementType
);
} else if (value1 instanceof IntervalSecondType.IntervalSecond) {
return new IntervalSecondType.IntervalSecond(


new BigDecimal(Math.multiplyExact(value0.longValue(), 1000)),
((IntervalSecondType.IntervalSecond) value1).elementType
);
Expand Down