Skip to content

Commit

Permalink
short doesn't have toBigDecimal extension function
Browse files Browse the repository at this point in the history
  • Loading branch information
timeking authored May 26, 2023
1 parent 4601e4d commit d24224b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ class DecimalColumnType(
}
is Long -> value.toBigDecimal()
is Int -> value.toBigDecimal()
is Short -> value.toBigDecimal()
is Short -> value.toLong().toBigDecimal()
else -> error("Unexpected value of type Decimal: $value of ${value::class.qualifiedName}")
}.setScale(scale, RoundingMode.HALF_EVEN)

Expand Down

0 comments on commit d24224b

Please sign in to comment.