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

[release/9.0] Nanoseconds and microseconds processing fix on Cosmos #34901

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

cincuranet
Copy link
Contributor

@cincuranet cincuranet commented Oct 14, 2024

Backport of #34861. For Cosmos only because Cosmos already had the support.

Description

In Cosmos provider for EF Core 9 we improperly translated Nanosecond and Microsecond properties leading into mismatch between expected .NET behavior and what was actually done in database. This is a new functionality in 9.0.

Customer impact

Incorrect data returned from query. Possible data corruption bug.

How found

Found while implementing same support for SQL Server.

Regression

No.

Testing

Tests added (in main covering bigger area).

Risk

Low.

Copy link
Member

@roji roji left a comment

Choose a reason for hiding this comment

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

Thanks for fixing, this was my bug.

@SamMonoRT
Copy link
Member

approved via email

@maumar maumar merged commit 63c9bf9 into dotnet:release/9.0 Oct 14, 2024
7 checks passed
@cincuranet cincuranet deleted the cosmos-nanoseconds-bugfix branch October 15, 2024 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants