You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
writeParameterData with a large scale value won't write correct buffer value #1058
Hi @MartinJLee, this is a known issue. Checkout #678.
The issue is that Many (but not all) of the data types supported in SQL Server do not map 1:1 to JavaScript types. This happens especially with large precision and scale, in which case the calculated value goes beyond what JavaScript can handle.
For e.g., the value you want to store is 43069012291666710000, but JavaScript / Node.js can only handle up to 9007199254740991. We will re-focus on #678 to see what changes we can make to mitigate this issue.
For now you could try to use the library big-number
Activity
IanChokS commentedon Feb 26, 2020
Hi @MartinJLee, this is a known issue. Checkout #678.
The issue is that
Many (but not all) of the data types supported in SQL Server do not map 1:1 to JavaScript types. This happens especially with large precision and scale, in which case the calculatedvaluegoes beyond what JavaScript can handle.For e.g., the value you want to store is
43069012291666710000, but JavaScript / Node.js can only handle up to9007199254740991. We will re-focus on #678 to see what changes we can make to mitigate this issue.For now you could try to use the library big-number
Adds check for UINT64 overflow
Adds check for UINT64 overflow