Closed ghstahl closed 1 year ago
pgtype.Numeric
supports NaN
and infinity
. It's the shopspring/decimal
package that doesn't. I don't think adding new pgtype.Status
values is a good idea. If something was to be changed with the integration is would make more sense to add NaN bool
and InfinityModifier InfinityModifier
like pgtype.Numeric
have.
I don't really see making any changes to the standard shopspring/decimal
integration, but it should be easy to copy the extension package to your own project and make these changes if there is no other way.
https://github.com/jackc/pgtype/issues/198