Skip to content

Bulk insert fails with small floats #93

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

Open
seandickert opened this issue Oct 24, 2021 · 0 comments
Open

Bulk insert fails with small floats #93

seandickert opened this issue Oct 24, 2021 · 0 comments

Comments

@seandickert
Copy link

I've encountered an odd issue with the bulk_insert function. The function fails when inserting values with scale >= 4 and 4 leading 0s. For example,

ctds.SqlDecimal(.000183, 23, 10)

will work, while

ctds.SqlDecimal(.000083, 23, 10)

fails. It could possibly have something to do with python representing floating point numbers in scientific notation when the # of leading 0s after the decimal is >= 4.

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