Skip to content

Commit 443822a

Browse files
nokiaMSgithubgxll
authored andcommitted
[fix][runtime] Fix issue that decimal type is not be truncated when scale is 0.
1 parent 455b605 commit 443822a

File tree

1 file changed

+1
-1
lines changed
  • runtime/src/main/java/io/dingodb/expr/runtime/expr

1 file changed

+1
-1
lines changed

runtime/src/main/java/io/dingodb/expr/runtime/expr/Var.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public Object eval(EvalContext context, ExprConfig config) {
5656
return null;
5757
}
5858

59-
if (typeScale > 0) {
59+
if (typeScale >= 0) {
6060
return obj.setScale(typeScale, RoundingMode.HALF_UP);
6161
}
6262
}

0 commit comments

Comments
 (0)