Skip to content

Commit

Permalink
Remove duplicate CacheConnectionStringProperties calls (dotnet#683)
Browse files Browse the repository at this point in the history
  • Loading branch information
karinazhou authored and TrayanZapryanov committed Aug 31, 2020
1 parent dbbcde8 commit 4ae7ee9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ private static readonly ConcurrentDictionary<string, IList<string>> _ColumnEncry
public SqlConnection(string connectionString) : this()
{
ConnectionString = connectionString; // setting connection string first so that ConnectionOption is available
CacheConnectionStringProperties();
}

/// <include file='../../../../../../../doc/snippets/Microsoft.Data.SqlClient/SqlConnection.xml' path='docs/members[@name="SqlConnection"]/ctorConnectionStringCredential/*' />
Expand Down Expand Up @@ -157,7 +156,6 @@ public SqlConnection(string connectionString, SqlCredential credential) : this()
// else
// credential == null: we should not set "Credential" as this will do additional validation check and
// checking pool groups which is not necessary. All necessary operation is already done by calling "ConnectionString = connectionString"
CacheConnectionStringProperties();
}

private SqlConnection(SqlConnection connection)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,6 @@ public SqlConnection(string connectionString, SqlCredential credential) : this()
// else
// credential == null: we should not set "Credential" as this will do additional validation check and
// checking pool groups which is not necessary. All necessary operation is already done by calling "ConnectionString = connectionString"
CacheConnectionStringProperties();
}

private SqlConnection(SqlConnection connection)
Expand Down Expand Up @@ -3231,5 +3230,3 @@ internal struct MEMMAP
internal byte[] rgbData;
}
} // Microsoft.Data.SqlClient namespace


0 comments on commit 4ae7ee9

Please sign in to comment.