-
Notifications
You must be signed in to change notification settings - Fork 302
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
Complete removal of SQL 2000 support #3217
Conversation
…helZ/SqlClient into pr/tdsparser-remove-sql-2000
src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/SqlInternalConnectionSmi.cs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good - one small change requested.
src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/SqlConnection.cs
Show resolved
Hide resolved
} | ||
finally | ||
{ | ||
if (con != null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add braces here, or use null-conditional con?.Dispose()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes - fixed. I've updated the netcore code to keep it in sync.
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3217 +/- ##
==========================================
- Coverage 72.58% 66.14% -6.44%
==========================================
Files 289 282 -7
Lines 59503 59203 -300
==========================================
- Hits 43188 39162 -4026
- Misses 16315 20041 +3726
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This finishes the work from #3206 and prior PRs. It removes the
Is2005OrNewer
andIs2000
properties fromSqlCommand
,SqlConnection
,SqlInternalConnectionSmi
,SqlInternalConnectionTds
,SqlInternalConnection
andTdsParser
, then chases those references through the codebase.I'd appreciate a CI run against this, although I don't think there'll be any surprises here - all of these code paths should be dead.