Fix for updating datetime value#962
Merged
peterbae merged 15 commits intomicrosoft:devfrom Mar 13, 2019
Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #962 +/- ##
============================================
- Coverage 50.58% 49.83% -0.76%
+ Complexity 2918 2847 -71
============================================
Files 120 120
Lines 27987 28004 +17
Branches 4678 4682 +4
============================================
- Hits 14158 13956 -202
- Misses 11532 11789 +257
+ Partials 2297 2259 -38
Continue to review full report at Codecov.
|
Contributor
Author
|
I re-ran the CI build and it passed: https://dev.azure.com/sqlclientdrivers-ci/mssql-jdbc/_build/results?buildId=278 |
rene-ye
reviewed
Mar 1, 2019
lilgreenbird
reviewed
Mar 7, 2019
cheenamalhotra
approved these changes
Mar 8, 2019
lilgreenbird
approved these changes
Mar 12, 2019
lilgreenbird
approved these changes
Mar 12, 2019
rene-ye
reviewed
Mar 12, 2019
ulvii
approved these changes
Mar 13, 2019
rene-ye
approved these changes
Mar 13, 2019
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.
Starting from SQL Server 2016, the rounding logic for inserting datetime value has been changed. Instead of uniformly rounding up values normally (<=4 rounds down, >=5 rounds up), the logic present in the getRoundedMilliseconds method shows how the numbers are actually rounded.
The writeRPCDateTime method that gets used during updating a datetimecolumn wasn't correctly reflecting this, and this PR addresses that issue.