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

Commit21e10ae

Browse files
Regression | Revert PR#2281 SNIProxy code change (#2395)
1 parentfaf9b95 commit21e10ae

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

‎src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIProxy.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -653,10 +653,10 @@ private bool InferConnectionDetails()
653653

654654
Port=port;
655655
}
656-
// Instance Name Handling.
657-
if(backSlashIndex>-1)
656+
// Instance Name Handling.Only if we found a '\' and we did not find a port in the Data Source
657+
elseif(backSlashIndex>-1)
658658
{
659-
// This means that thereis apart separated by'\'
659+
// This means that therewill not be anypart separated bycomma.
660660
InstanceName=tokensByCommaAndSlash[1].Trim();
661661

662662
if(string.IsNullOrWhiteSpace(InstanceName))

‎src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/InstanceNameTest/InstanceNameTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ public static void ConnectManagedWithInstanceNameTest(bool useMultiSubnetFailove
8787
}
8888

8989
#ifNETCOREAPP
90+
[ActiveIssue("27824")]// When specifying instance name and port number, this method call always returns false
9091
[ConditionalFact(nameof(IsSPNPortNumberTestForTCP))]
9192
publicstaticvoidPortNumberInSPNTestForTCP()
9293
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp