Repository navigation
Revert DateTimeOffset deprecation for GA compatibility - #3035
Merged
Divang Sharma (divang) merged 1 commit intoSep 1, 2026
Merged
Conversation
…OffsetDateTime (#2920)"
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3035 +/- ##
============================================
+ Coverage 60.55% 60.59% +0.03%
+ Complexity 5258 5212 -46
============================================
Files 153 153
Lines 36808 36680 -128
Branches 6764 6732 -32
============================================
- Hits 22289 22226 -63
+ Misses 10736 10625 -111
- Partials 3783 3829 +46 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Mahendra Chavan (machavan)
approved these changes
Sep 1, 2026
Ananya Garg (Ananya2)
approved these changes
Sep 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR reverts #2920, which deprecated microsoft.sql.DateTimeOffset and introduced driver-specific APIs using java.time.OffsetDateTime.
The rollback is required for GA readiness to preserve the established public API and avoid introducing compatibility changes in the current release.
Changes
Removes the driver-specific getOffsetDateTime() APIs.
Removes the driver-specific setOffsetDateTime() APIs.
Removes the driver-specific updateOffsetDateTime() APIs.
Removes the deprecation of microsoft.sql.DateTimeOffset.
Removes deprecation annotations from the existing getDateTimeOffset(), setDateTimeOffset(), and updateDateTimeOffset() APIs.
Restores the associated tests to the legacy API behavior.
Removes the reverted feature entry from CHANGELOG.md.
Preserves standard JDBC support for getObject(..., OffsetDateTime.class) and existing conversion methods.
Motivation
Although the legacy APIs remained available, promoting OffsetDateTime as the canonical representation introduced externally observable API and behavior changes close to GA.
Reverting the change preserves compatibility with applications that currently depend on:
microsoft.sql.DateTimeOffset
Existing SQL Server-specific getters, setters, and update methods
Established datetimeoffset handling across prepared statements, callable statements, result sets, bulk copy, and Always Encrypted
The OffsetDateTime migration can be reconsidered in a future release with a dedicated compatibility and migration plan.
Related
Reverts #2920
Supersedes the metadata direction proposed in #3030 for the current GA release.