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

Fix | LocalDb and managed SNI #2129

Merged
merged 2 commits into from
Sep 2, 2023
Merged

Conversation

DavoudEshtehari
Copy link
Contributor

Improved error messages and failure scenarios on managed SNI.

@DavoudEshtehari DavoudEshtehari added 🐛 Bug! Issues that are bugs in the drivers we maintain. Area\Managed SNI Issues that are targeted to the Managed SNI codebase. labels Aug 18, 2023
@DavoudEshtehari DavoudEshtehari added this to the 5.2.0-preview4 milestone Aug 18, 2023
Comment on lines +161 to +164
if (IsNativeSNI())
{
Assert.Contains("The specified LocalDB instance does not exist.", ex.Message);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Additional information comes from the native method call in TdsParser by LocalDBAPI.GetLocalDBMessage().

@codecov
Copy link

codecov bot commented Aug 19, 2023

Codecov Report

Patch coverage: 40.62% and project coverage change: +0.23% 🎉

Comparison is base (b82b1eb) 70.76% compared to head (a8f79df) 71.00%.
Report is 14 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2129      +/-   ##
==========================================
+ Coverage   70.76%   71.00%   +0.23%     
==========================================
  Files         306      305       -1     
  Lines       62051    61854     -197     
==========================================
+ Hits        43910    43918       +8     
+ Misses      18141    17936     -205     
Flag Coverage Δ
addons 92.88% <ø> (ø)
netcore 73.44% <40.62%> (-0.13%) ⬇️
netfx 69.79% <ø> (+0.44%) ⬆️

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

Files Changed Coverage Δ
...core/src/Microsoft/Data/SqlClient/SNI/SNICommon.cs 56.66% <ø> (+1.53%) ⬆️
...soft.Data.SqlClient/src/Resources/StringsHelper.cs 51.42% <0.00%> (-39.05%) ⬇️
...tcore/src/Microsoft/Data/SqlClient/SNI/SNIProxy.cs 49.29% <50.00%> (-0.17%) ⬇️
...rc/Microsoft/Data/SqlClient/SNI/LocalDB.Windows.cs 51.54% <100.00%> (+2.08%) ⬆️
.../netcore/src/Microsoft/Data/SqlClient/TdsParser.cs 68.29% <100.00%> (-0.37%) ⬇️

... and 28 files with indirect coverage changes

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

@JRahnama JRahnama merged commit 4888f90 into dotnet:main Sep 2, 2023
132 checks passed
DavoudEshtehari added a commit to DavoudEshtehari/SqlClient that referenced this pull request Oct 25, 2023
DavoudEshtehari added a commit to DavoudEshtehari/SqlClient that referenced this pull request Oct 27, 2023
DavoudEshtehari added a commit to DavoudEshtehari/SqlClient that referenced this pull request Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area\Managed SNI Issues that are targeted to the Managed SNI codebase. 🐛 Bug! Issues that are bugs in the drivers we maintain.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants