-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix FromSql for Postgres Numeric NaNs (#656)
* Fix FromSql for Postgres Numeric NaNs This fixes a bug where from_sql was converting Numeric::NaN to 0 rather than returning an error. It also returns a more descriptive error message when from_sql is called with Numeric Infinity and -Infinity, which are also not representable in Decimal. Closes #655 * Rename to_from_sql to postgres_to_from_sql * Rename from_sql_special_numeric to postgres_from_sql_special_numeric --------- Co-authored-by: Paul Mason <[email protected]>
- Loading branch information
1 parent
f0abf16
commit 913dc5b
Showing
2 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters