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

Log a warning when the version of Microsoft.Data.SqlClient is lower than 5.2.0 #1305

Merged
merged 3 commits into from Mar 4, 2024

Conversation

danielmarbach
Copy link
Contributor

@danielmarbach danielmarbach commented Mar 1, 2024

Description

Microsoft.Data.SqlClient version 3.x referenced in our package has a number of issues that have been addressed in the 5.x versions of the client. Unfortunately, we can't just upgrade that package in a minor, since both version 4.x and 5.x contain a number of breaking changes that might require careful planning on the side of our customers. The next major version of the transport will already have a dependency on 5.2.0. As an intermediate step, we are adding a log warning to inform customers that they should consider upgrading the Sql Client version.

Documentation

None. The warning contains all the information necessary.

@danielmarbach danielmarbach changed the title Log warn when the client version is below 5.0.2 Log warn when the Microsoft.Data.SqlClient version is below 5.0.2 Mar 1, 2024
@bording
Copy link
Member

bording commented Mar 1, 2024

@danielmarbach Why 5.0.2 as a minimum specifically? Why not latest?

@danielmarbach
Copy link
Contributor Author

@bording because 5.0.2 contains the memory leak fixes that we care about. I was thinking about mentioning 5.2.0 but technically that is not needed unless we want to make sure besides not running into the memory leak they are also safe with transaction on .NET. I' m good either way.

…start upgrading to later versions without enforcing them to have Encrypt=true that was introduced in a breaking change in 4.x of the client
@danielmarbach
Copy link
Contributor Author

@bording pushed. Maybe the warning is a bit too specific now. Happy to take suggestions

@danielmarbach danielmarbach changed the title Log warn when the Microsoft.Data.SqlClient version is below 5.0.2 Log warn when the Microsoft.Data.SqlClient version is below 5.2.0 Mar 1, 2024
@danielmarbach danielmarbach merged commit 2785ba3 into release-7.0 Mar 4, 2024
3 checks passed
@danielmarbach danielmarbach deleted the sql-client-version-check branch March 4, 2024 16:26
@danielmarbach danielmarbach added this to the 7.0.6 milestone Mar 5, 2024
@danielmarbach danielmarbach changed the title Log warn when the Microsoft.Data.SqlClient version is below 5.2.0 Log a warning when the Microsoft.Data.SqlClient version is below 5.2.0 Mar 5, 2024
@danielmarbach danielmarbach changed the title Log a warning when the Microsoft.Data.SqlClient version is below 5.2.0 Log a warning when the version of Microsoft.Data.SqlClient is lower than 5.2.0 Mar 7, 2024
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.

None yet

5 participants