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

Stored procedure call returns wrong BigDecimal scale and integrated Mockito Dependency into JDBC Driver Codebase. #2582

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

Ananya2
Copy link
Contributor

@Ananya2 Ananya2 commented Jan 13, 2025

#2534 - Set scale value dynamically for DECIMAL output parameters in registerOutParameter method.

This change retrieves the scale from the ParameterMetaData and applies it to the DECIMAL output parameter. This provides a more flexible approach for handling DECIMAL data types.

As an alternative, users can directly call registerOutParameter(index, sqlType, scale) to specify the scale explicitly.

And integrated Mockito Dependency into JDBC Driver Codebase. https://sqlclientdrivers.visualstudio.com/mssql-jdbc/_workitems/edit/33295

@Ananya2 Ananya2 self-assigned this Jan 13, 2025
machavan
machavan previously approved these changes Jan 16, 2025
Copy link
Contributor

@machavan machavan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please run ADO tests with this branch

@Ananya2
Copy link
Contributor Author

Ananya2 commented Jan 16, 2025

/azp run public-mssql-jdbc.windows

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Ananya2
Copy link
Contributor Author

Ananya2 commented Jan 16, 2025

/azp run public-mssql-jdbc.linux

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Ananya2
Copy link
Contributor Author

Ananya2 commented Jan 16, 2025

/azp run CI-MacOS

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link

codecov bot commented Jan 16, 2025

Codecov Report

Attention: Patch coverage is 87.50000% with 1 line in your changes missing coverage. Please review.

Project coverage is 51.37%. Comparing base (25ea8da) to head (223599b).

Files with missing lines Patch % Lines
...oft/sqlserver/jdbc/SQLServerCallableStatement.java 87.50% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2582      +/-   ##
============================================
+ Coverage     51.35%   51.37%   +0.01%     
- Complexity     3972     3975       +3     
============================================
  Files           147      147              
  Lines         33664    33672       +8     
  Branches       5626     5627       +1     
============================================
+ Hits          17288    17298      +10     
+ Misses        13939    13937       -2     
  Partials       2437     2437              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Ananya2 Ananya2 changed the title Stored procedure call returns wrong BigDecimal scale. Stored procedure call returns wrong BigDecimal scale and integrated Mockito Dependency into JDBC Driver Codebase. Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

3 participants