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

Remove SQL 2000 client-side debugging support #2981

Merged
merged 3 commits into from
Nov 15, 2024

Conversation

edwardneal
Copy link
Contributor

Follows up #2940, removing the client-side support for SQL 2000's debugging mechanisms from netfx and aligning with netcore.

The SqlConnection diff will be easier to parse with whitespace changes disabled. I've removed the methods which enable the now-defunct debugging, the SqlDebugContext class and MEMMAP struct which they use and the PInvokes they reference. These PInvokes were the only thing in netfx\src\Microsoft\Data\Common\NativeMethods.cs, so I've deleted the file.

This isn't critical for preview3.

/cc @benrr101 - there's no need to port PInvokes from NativeMethods.cs anywhere. It's the same story for the SafeNativeMethods.cs file in the same folder.

This also recurses down into NativeMethods.cs, to help clean up PInvokes.
@benrr101
Copy link
Contributor

Uhhhhhhhhhhhhhhhhhhhhhhhhhhh 😅
Can I get my PR in first and you can delete whatever from it that is no longer needed?

@benrr101 benrr101 added the Common Project 🚮 Things that relate to the common project project label Nov 11, 2024
@edwardneal
Copy link
Contributor Author

edwardneal commented Nov 11, 2024

No worries - I'll just merge back into my branch once #2997 is done.
Edit: done!

Copy link

codecov bot commented Nov 13, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 16 lines in your changes missing coverage. Please review.

Project coverage is 72.56%. Comparing base (4052186) to head (3aeec6f).
Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
...etfx/src/Microsoft/Data/SqlClient/SqlConnection.cs 50.00% 16 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2981      +/-   ##
==========================================
+ Coverage   72.48%   72.56%   +0.07%     
==========================================
  Files         288      288              
  Lines       59493    59385     -108     
==========================================
- Hits        43123    43091      -32     
+ Misses      16370    16294      -76     
Flag Coverage Δ
addons 92.58% <ø> (ø)
netcore 75.36% <ø> (-0.07%) ⬇️
netfx 71.09% <50.00%> (+0.16%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@benrr101 benrr101 left a comment

Choose a reason for hiding this comment

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

Let's gooooooooo delete that code!

@MichelZ
Copy link
Contributor

MichelZ commented Nov 15, 2024

#2839 next! :)

@cheenamalhotra cheenamalhotra added this to the 6.0-preview3 milestone Nov 15, 2024
@cheenamalhotra cheenamalhotra merged commit 4a2fbae into dotnet:main Nov 15, 2024
76 checks passed
@edwardneal edwardneal deleted the remove-sqldebugging-paths branch November 15, 2024 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Common Project 🚮 Things that relate to the common project project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants