Fix for Issue #2549 - cannot use feature "rust_decimal" without also using "bigdecimal" #2585
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix for this issue.
When trying to use the (newly renamed)
rust_decimal
feature in version 7.0.0, compiling fails because there is a missing dependency onnum-bigint
and numerous places in the code where the previous feature name ofdecimal
was not updated to the new name ofrust_decimal
.Even if one includes the
bigdecimal
feature when using the current code onmain
,rust_decimal
functionality is not restored (although it is then possible to compile) because the macros still returnBigDecimal
for allNUMERIC
Postgres types.This small patch fixes those issues and restores
rust_decimal
functionality.