Skip to content
New issue

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

Add option to bind DECIMAL/NUMERIC to strings #412

Open
kadler opened this issue Nov 19, 2024 · 0 comments
Open

Add option to bind DECIMAL/NUMERIC to strings #412

kadler opened this issue Nov 19, 2024 · 0 comments

Comments

@kadler
Copy link
Member

kadler commented Nov 19, 2024

Currently, we convert fixed-precision numeric types to Javascript Number objects, which are inexact double precision floating point values. This conversion is a lossy conversion, which is not ideal. We should provide a mechanism to allow the user to bind these to strings so that they can be handled without conversion issues (eg. by using a package which handles fixed-point decimal math).

This is what pg@v2 does by default and mysql does when bigNumberStrings option is enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant