You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But it didn't update SqlConnectionStringBuilder, which lead to confuse when parse an connStr with SqlConnectionStringBuilder(The value from SqlConnectionStringBuilder don't match what's really used by connection)
Expected behavior
new SqlConnectionStringBuilder("").Encrypt should be true(parse from an connStr without Encrypt set)
No idea what new SqlConnectionStringBuilder().Encrypt should be, but at least after fixed case 1, it shouldn't broken roundtrip Assert(new SqlConnectionStringBuilder().Encrypt == new SqlConnectionStringBuilder(new SqlConnectionStringBuilder().ToString()).Encrypt)
Describe the bug
4.0.0-preview1 include an broken change update the default value of
Encrypt
totrue
in #1210https://github.com/dotnet/SqlClient/blob/main/release-notes/4.0/4.0.0-preview1.md#encrypt-default-value-set-to-true
But it didn't update SqlConnectionStringBuilder, which lead to confuse when parse an connStr with SqlConnectionStringBuilder(The value from SqlConnectionStringBuilder don't match what's really used by connection)
Expected behavior
new SqlConnectionStringBuilder("").Encrypt
should be true(parse from an connStr without Encrypt set)new SqlConnectionStringBuilder().Encrypt
should be, but at least after fixed case1
, it shouldn't broken roundtripAssert(new SqlConnectionStringBuilder().Encrypt == new SqlConnectionStringBuilder(new SqlConnectionStringBuilder().ToString()).Encrypt)
Further technical details
Microsoft.Data.SqlClient version: 4.0.0-preview1.21237.2
The text was updated successfully, but these errors were encountered: