Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Merge | LocalDBAPI#3163

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
benrr101 merged 13 commits intomainfromdev/russellben/merge/localdbapi
Feb 20, 2025
Merged

Merge | LocalDBAPI#3163

benrr101 merged 13 commits intomainfromdev/russellben/merge/localdbapi
Feb 20, 2025

Conversation

benrr101
Copy link
Contributor

This is a replacement of#3047 that will give us the complete CI

Description: This is one more PR that targets merging another file between the netfx project and the netcore project. This time, it's the LocalDBAPI. This one was a bit complicated because the files were split differently between netfx and netcore. The way I approached it was to merge the operative code into the LocalDBAPI.Windows file and merge the inoperative code to the LocalDBAPI.Unix file. The Windows file will be pulled in on both netfx and netcore projects, with it being conditionally included on netcore if the build is for Windows. The Unix file will be pulled in on netcore only, being conditionally included if the build is for Unix. Otherwise, this is a fairly standard merge with netfx having extra stuff that is#if'd in.

please note: cleanup to remove monitor sections, etc, is coming in a later PR.

Testing: There miiiiight be some issues with unix build, I might not have fully vetted it on unix.

…ot* want to try to decompose stuff in TdsParser to remove LocalDBAPI references on non-windows systems.
@benrr101benrr101 added this to the7.0-preview1 milestoneFeb 19, 2025
@benrr101benrr101 requested a review froma teamFebruary 19, 2025 19:26
@benrr101benrr101 added the Common Project 🚮Things that relate to the common project project labelFeb 19, 2025
@benrr101benrr101 changed the titleDev/russellben/merge/localdbapiMerge | LocalDBAPIFeb 19, 2025
@benrr101benrr101 mentioned this pull requestFeb 19, 2025
@@ -8,6 +8,9 @@ namespace Microsoft.Data
{
internal static partial class LocalDBAPI
{
internal static string GetLocalDbInstanceNameFromServerName(string serverName) =>
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is a change in behavior, but I agree with it. Right now, we try to get the local db instance name for unix, and may return a non-null value, but later steps can fail with a PlatformNotSupportedException.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

On second look, yes I think you're right that it's a behavior change. I think the one thing I'm not sure about is if this will raise a platformnotsupported exception or if it will just fail to connect. I'm going to fire this up on linux to verify.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Can confirm, on Linux, the behavior is the same - we get the "LocalDB is not supported on this platform" exception when trying to connect.

@codecovCodecov
Copy link

codecovbot commentedFeb 20, 2025
edited
Loading

Codecov Report

Attention: Patch coverage is24.71910% with67 lines in your changes missing coverage. Please review.

Project coverage is 72.84%. Comparing base(17cb0b0) to head(bc3857d).
Report is 4 commits behind head on main.

Files with missing linesPatch %Lines
...src/Microsoft/Data/SqlClient/LocalDBAPI.Windows.cs23.86%67 Missing⚠️
Additional details and impacted files
@@            Coverage Diff             @@##             main    #3163      +/-   ##==========================================- Coverage   72.96%   72.84%   -0.12%==========================================  Files         283      282       -1       Lines       58997    59175     +178     ==========================================+ Hits        43048    43107      +59- Misses      15949    16068     +119
FlagCoverage Δ
addons92.58% <ø> (ø)
netcore75.48% <15.51%> (-0.25%)⬇️
netfx71.23% <24.41%> (-0.13%)⬇️

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.

@benrr101benrr101 merged commite25c24a intomainFeb 20, 2025
252 checks passed
@benrr101benrr101 deleted the dev/russellben/merge/localdbapi branchFebruary 20, 2025 21:04
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@mdaiglemdaiglemdaigle approved these changes

@paulmedynskipaulmedynskipaulmedynski approved these changes

Assignees
No one assigned
Labels
Common Project 🚮Things that relate to the common project project
Projects
None yet
Milestone
6.1-preview1
Development

Successfully merging this pull request may close these issues.

3 participants
@benrr101@mdaigle@paulmedynski

[8]ページ先頭

©2009-2025 Movatter.jp