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

Correct GetParseSynonyms' failing debug assertion #3088

Closed
wants to merge 1 commit into from

Conversation

edwardneal
Copy link
Contributor

Fixes #3016

Copy link

codecov bot commented Dec 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.73%. Comparing base (986cdb9) to head (98f0a76).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3088      +/-   ##
==========================================
- Coverage   72.74%   72.73%   -0.01%     
==========================================
  Files         283      283              
  Lines       58968    58968              
==========================================
- Hits        42894    42891       -3     
- Misses      16074    16077       +3     
Flag Coverage Δ
addons 92.58% <ø> (ø)
netcore 75.53% <ø> (+0.04%) ⬆️
netfx 71.17% <ø> (-0.05%) ⬇️

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.

@@ -132,7 +132,7 @@ private enum Keywords
private bool _transparentNetworkIPResolution = DbConnectionStringDefaults.TransparentNetworkIPResolution;
private string _networkLibrary = DbConnectionStringDefaults.NetworkLibrary;
#else
internal const int DeprecatedKeywordsCount = 5;
Copy link
Member

Choose a reason for hiding this comment

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

Can we get rid of this counter?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think so. It's used to mark keywords which are supported in .NET Framework but not in .NET Core. These are Connection Reset and Network Library. Connection Reset should be a fairly easy keyword to merge, but Network Library needs a little more thought - what connection method should we use if the Network Library keyword requests named pipes, but the Server keyword requests TCP?

Copy link
Contributor

Choose a reason for hiding this comment

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

" if the Network Library keyword requests named pipes, but the Server keyword requests TCP"

Invalid connection string?

Copy link
Member

Choose a reason for hiding this comment

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

Not needed, because the connection would fail itself.

Deprecation wise, network library is replaced with 'tcp/np:' in DataSource property, so we need not worry about handling it.

@mdaigle mdaigle added this to the 7.0-preview1 milestone Jan 7, 2025
@mdaigle mdaigle requested review from paulmedynski and a team January 7, 2025 18:28
@cheenamalhotra
Copy link
Member

Replacing this proposal with #3098

@cheenamalhotra cheenamalhotra removed this from the 7.0-preview1 milestone Jan 8, 2025
@edwardneal edwardneal deleted the issue-3016 branch January 8, 2025 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Debug Assertion Failure : incorrect initial ParseSynonyms size
4 participants