Skip to content

Commit

Permalink
Regression | Revert PR #2281 SNIProxy code change (#2395)
Browse files Browse the repository at this point in the history
  • Loading branch information
JRahnama committed Mar 25, 2024
1 parent 4e23bf9 commit bdfa5d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -653,10 +653,10 @@ private bool InferConnectionDetails()

Port = port;
}
// Instance Name Handling.
if (backSlashIndex > -1)
// Instance Name Handling. Only if we found a '\' and we did not find a port in the Data Source
else if (backSlashIndex > -1)
{
// This means that there is a part separated by '\'
// This means that there will not be any part separated by comma.
InstanceName = tokensByCommaAndSlash[1].Trim();

if (string.IsNullOrWhiteSpace(InstanceName))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public static void ConnectManagedWithInstanceNameTest(bool useMultiSubnetFailove
}

#if NETCOREAPP
[ActiveIssue("27824")] // When specifying instance name and port number, this method call always returns false
[ConditionalFact(nameof(IsSPNPortNumberTestForTCP))]
public static void PortNumberInSPNTestForTCP()
{
Expand Down

0 comments on commit bdfa5d8

Please sign in to comment.