We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NUMERIC[]
rust_decimal
I've encountered an issue when I had $1::numeric[] in a query and the compiler reported:
$1::numeric[]
error: optional feature bigdecimal required for type NUMERIC[] of param # 1
bigdecimal
It seems there is a support for NUMERIC type using rust_decimal crate with feature = "decimal", but not for NUMERIC[] type.
NUMERIC
feature = "decimal"
Is it just missing implementation here for decimal feature?
decimal
sqlx/sqlx-macros/src/database/postgres.rs
Lines 117 to 118 in f858138
Edit: I've tried to just "blindly" copy&paste the bigdecimal impl and it seems to just work tm-drtina@b9d48ba
The text was updated successfully, but these errors were encountered:
Sounds like a simple oversight, if you want to open a PR with your fix we'd accept it.
Sorry, something went wrong.
PR opened, I've rebased it on master, since I'm using that branch are cargo patch of 0.5.11
Successfully merging a pull request may close this issue.
I've encountered an issue when I had
$1::numeric[]
in a query and the compiler reported:It seems there is a support for
NUMERIC
type usingrust_decimal
crate withfeature = "decimal"
, but not forNUMERIC[]
type.Is it just missing implementation here for
decimal
feature?sqlx/sqlx-macros/src/database/postgres.rs
Lines 117 to 118 in f858138
Edit: I've tried to just "blindly" copy&paste the
bigdecimal
impl and it seems to just work tm-drtina@b9d48baThe text was updated successfully, but these errors were encountered: