-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
When inserting Double.MinValue from VB.NET into a MySQL (8.X or 9.3) DOUBLE column (X), the operation fails with:
Out of range value for column 'X' at row N
Details:
- Z.BulkOperations v2.13.15.
- The DataRow value is correct (Double.MinValue = -1.7976931348623157E+308).
- Z.BulkOperations converts the Double to a string literal internally to generate the SQL.
- On x64 platforms, the conversion truncates the precision slightly (e.g., -1.79769313486232E+308).
- MySQL rejects the truncated literal as out of range, even though the original value is valid.
- On x86 platforms, the same literal is accepted by MySQL.
- Changing CultureInfo has no effect; the problem is due to internal Double.ToString() conversion in the library.
Thanks for the help.
Kind Regards
Marin
Metadata
Metadata
Assignees
Labels
No labels