From 22069d8eaf9bd21b1b083420fbe279a0bc757bb9 Mon Sep 17 00:00:00 2001 From: Cheena Malhotra Date: Tue, 12 Jan 2021 15:21:52 -0800 Subject: [PATCH] Fix | Fix issue connecting with instance name from Unix environment --- .../netcore/src/Microsoft/Data/SqlClient/SNI/SNIProxy.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIProxy.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIProxy.cs index 8038220844..c35d4b64ac 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIProxy.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIProxy.cs @@ -685,7 +685,7 @@ private bool InferConnectionDetails() int commaIndex = _dataSourceAfterTrimmingProtocol.IndexOf(CommaSeparator); - int backSlashIndex = _dataSourceAfterTrimmingProtocol.IndexOf(PipeBeginning); + int backSlashIndex = _dataSourceAfterTrimmingProtocol.IndexOf(BackSlashCharacter); // Check the parameters. The parameters are Comma separated in the Data Source. The parameter we really care about is the port // If Comma exists, the try to get the port number