This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
You can continue the conversation there. Go to discussion →
rust_decimal::Decimal
Number exceeds maximum value that can be represented.
#1942
Hi!
I am inserting my
Option<rust_decimal::Decimal>
via the code below whilevolume
is of typeDecimal
.which works fine.
But when reading rows from the table the app panics with
This confuses me as I inserted only
Decimal
values which I would have not been able to construct if invalid. It would also be helpful to see which exact number caused this issue as theDecimal
crates error message does not print the number.Sorry for not providing a exact reproducable example but I assume it can be done by trying to insert and read the Decimal's max value.
Database: Postgres 16
Versions
The text was updated successfully, but these errors were encountered: