Closed farazfazli closed 1 year ago
@xoac @LouisGariepy Any ideas on how to fix this? Looks like due to language design, I can't add an additional trait to an external type.
@farazfazli That's right. To implement a trait, you must either own the type or the trait. This is called "orphan rules".
That's why the solution Xoac mentioned in the original issue included
add PR for bigdecimal crate to optionally enable support for postgresql?
They have to add the implementation upstream.
@LouisGariepy Makes sense, thanks for explaining. I will look into what's needed to open a PR upstream.
Looks like the BigDecimal crate is hardly maintained, and rust_decimal has a hard limit of 28 digits for precision: https://github.com/paupino/rust-decimal/issues/562
Closing this PR for now, we can create a new one if a crate is found which satisfies our requirements.
Addresses #204, WIP. Currently, facing an error due to BigDecimal not implementing the FromSql<'a> trait.