Skip to content

Commit 8963a1f

Browse files
author
mayur
committed
HHH-15228
"RoundFunction" which extends StandardSQLFunction to return BigDecimal if argument is BigDecimal, otherwise it returns Double.
1 parent fbcd583 commit 8963a1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hibernate-core/src/main/java/org/hibernate/dialect/function/RoundFunction.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,5 @@ public RoundFunction(String name) {
3434
public Type getReturnType(Type firstArgumentType, Mapping mapping) {
3535
return firstArgumentType == StandardBasicTypes.BIG_DECIMAL ? firstArgumentType : StandardBasicTypes.DOUBLE;
3636
}
37+
3738
}

0 commit comments

Comments
 (0)