Replies: 3 comments 1 reply
-
It's likely going to be a breaking change but it still should be implemented. In case the client is connecting to the server with an older version, a runtime error should be returned for infinities. |
Beta Was this translation helpful? Give feedback.
-
Thanks for filling this feature request. I agree that we should somehow support this and I'm open to hear suggestions how to implement this. As a important note: We likely wont accept a breaking change for to accept this feature anytime soon as we don't plan to issue another major diesel version anytime soon (== next years). |
Beta Was this translation helpful? Give feedback.
-
For a short term fix without break changes, I think it will suffice to create a wrapper like this: enum PgNumericWithInf {
PosInfinity,
NegInfinity,
Others(PgNumeric)
} and then implement |
Beta Was this translation helpful? Give feedback.
-
Positive and negative infinities are introduced in Postgres 14. Currently the
PgNumeric
type only supports normal floats and nan.Beta Was this translation helpful? Give feedback.
All reactions