File tree 2 files changed +4
-3
lines changed
src/Microsoft.Data.SqlClient
netcore/src/Microsoft/Data/SqlClient/SNI
tests/ManualTests/SQL/InstanceNameTest
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -653,10 +653,10 @@ private bool InferConnectionDetails()
653
653
654
654
Port = port ;
655
655
}
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
+ else if ( backSlashIndex > - 1 )
658
658
{
659
- // This means that there is a part separated by '\'
659
+ // This means that there will not be any part separated by comma.
660
660
InstanceName = tokensByCommaAndSlash [ 1 ] . Trim ( ) ;
661
661
662
662
if ( string . IsNullOrWhiteSpace ( InstanceName ) )
Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ public static void ConnectManagedWithInstanceNameTest(bool useMultiSubnetFailove
87
87
}
88
88
89
89
#if NETCOREAPP
90
+ [ ActiveIssue ( "27824" ) ] // When specifying instance name and port number, this method call always returns false
90
91
[ ConditionalFact ( nameof ( IsSPNPortNumberTestForTCP ) ) ]
91
92
public static void PortNumberInSPNTestForTCP ( )
92
93
{
You can’t perform that action at this time.
0 commit comments