-
v4 supported Numeric.AssignTo() on math/big.Rat. v5 doesn't have AssignTo() and Scan() doesn't support big.Rat. Is there a method to convert a v5 pgtype.Numeric into big.Rat? |
Beta Was this translation helpful? Give feedback.
Answered by
jackc
Dec 23, 2022
Replies: 1 comment
-
Not at the moment. It looks like that was added after v5 branched was branched and it was never ported. But in v5 the type system is more flexible so big.Rat can be supported without core support in the same way shopspring.Decimal is (e.g. https://github.com/jackc/pgx-shopspring-decimal). |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
cramey
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not at the moment. It looks like that was added after v5 branched was branched and it was never ported. But in v5 the type system is more flexible so big.Rat can be supported without core support in the same way shopspring.Decimal is (e.g. https://github.com/jackc/pgx-shopspring-decimal).