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 and bog-walk committed Jan 17, 2024
1 parent d1cefc4 commit 45c3136
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,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 45c3136

Please sign in to comment.