We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Similarly to bigint, numeric/decimal/money types should not be cast as a number in TypeScript because those values can exceed Number.MAX_SAFE_INTEGER. For that reason node-postgres returns them as strings.
bigint
numeric
decimal
money
number
Number.MAX_SAFE_INTEGER
Could this default behavior be changed before #60 is implemented?
The text was updated successfully, but these errors were encountered:
If this is just a quick change then the PR is here: #288
Sorry, something went wrong.
Thanks @jgonera, merged.
No branches or pull requests
Similarly to
bigint
,numeric
/decimal
/money
types should not be cast as anumber
in TypeScript because those values can exceedNumber.MAX_SAFE_INTEGER
. For that reason node-postgres returns them as strings.Could this default behavior be changed before #60 is implemented?
The text was updated successfully, but these errors were encountered: