-
Notifications
You must be signed in to change notification settings - Fork 433
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
Stored procedure call return wrong BigDecimal scale. #2534
Comments
While this is investigated further, does the below workaround help? Changing call.registerOutParameter(1, Types.DECIMAL); to call.registerOutParameter(1, Types.DOUBLE);` |
Hi @DmitriyGod, Please let us know if the above workaround works for you. We'll be moving this issue to our backlog, to be addressed at a later time. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Driver version
latest
SQL Server version
mcr.microsoft.com/mssql/server:2022-latest
Client Operating System
any
JAVA/JVM version
any
Table schema
no
Problem description
Stored procedure call return wrong BigDecimal scale.
Expected behavior
Return type defined scale
Actual behavior
Return wrong scale.
Error message/stack trace
This example shows that driver returns 4 scale instead of 3.
So here is example driver returns 4 scale instead of 5:
I think there is some place in driver fixing scale.
Any other details that can be helpful
JDBC trace logs
(1)
Expected :100.241
Actual :100.2410
(2)
Expected :100.24112
Actual :100.2411
The text was updated successfully, but these errors were encountered: