Skip to content

Added provision to set SQLServerBulkCopy options in PreparedStatement - #2555

Merged
Muskan Gupta (muskan124947) merged 25 commits into
mainfrom
dev/machavan/batchbcoptions
Jan 24, 2025
Merged

Muskan Gupta (muskan124947) merged 25 commits into
mainfrom
dev/machavan/batchbcoptions

Conversation

@machavan

@machavan Mahendra Chavan (machavan) commented Dec 4, 2024 •

Copy link
Copy Markdown
Contributor

Description:

Add provision to set SQLServerBulkCopyOptions in PreparedStatement via
-new connection string options
-a new method setBulkCopyOptions

Testing:

  • All tests pass
  • Added a new test BatchExecutionWithBCOptionsTest
  • TBD: Currently new tests have been added only for CheckConstraint option. Need to add tests for all the other newly addded options.
@machavan Mahendra Chavan (machavan) changed the title Add provision to set SQLServerBulkCopy options in PreparedStatement Dec 4, 2024
@codecov

codecov Bot commented Dec 4, 2024 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 66.07143% with 57 lines in your changes missing coverage. Please review.

Project coverage is 51.29%. Comparing base (5bb3353) to head (a698c02).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
.../microsoft/sqlserver/jdbc/SQLServerDataSource.java 0.00% 35 Missing ⚠️
...t/sqlserver/jdbc/SQLServerConnectionPoolProxy.java 4.54% 21 Missing ⚠️
...oft/sqlserver/jdbc/SQLServerPreparedStatement.java 50.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2555      +/-   ##
============================================
+ Coverage     51.01%   51.29%   +0.28%     
- Complexity     3921     3968      +47     
============================================
  Files           147      147              
  Lines         33483    33669     +186     
  Branches       5609     5628      +19     
============================================
+ Hits          17081    17272     +191     
+ Misses        13991    13980      -11     
- Partials       2411     2417       +6     

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

@machavan
Mahendra Chavan (machavan) marked this pull request as ready for review December 12, 2024 12:53
…faultsKeepIdentity and bulkCopyOptionDefaultsTableLock
@muskan124947

Copy link
Copy Markdown
Contributor

Added tests for all the options in BatchExecutionWithBCOptionsTest

Divang Sharma (divang) and others added 2 commits January 9, 2025 13:46
-Since the change has added connection string options for setting
various bulk copy options, this non-standard API is not needed.
@muskan124947

Copy link
Copy Markdown
Contributor
@muskan124947
Muskan Gupta (muskan124947) deleted the dev/machavan/batchbcoptions branch January 27, 2025 09:33
@lilgreenbird lilgreenbird (lilgreenbird) added this to the 12.10.0 milestone Feb 12, 2025
@lilgreenbird lilgreenbird (lilgreenbird) changed the title Incident#567732673 - Add provision to set SQLServerBulkCopy options in PreparedStatement Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

7 participants