mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-20 01:25:41 -05:00
Fix tests to capture encrypt 'null' by default (#1738)
This commit is contained in:
@@ -150,15 +150,15 @@ namespace Microsoft.SqlTools.ServiceLayer.Connection.Contracts
|
||||
/// Gets or sets a <see cref="string"/> value that indicates encryption mode that SQL Server should use to perform SSL encryption for all the data sent between the client and server. Supported values are: Optional, Mandatory, Strict, True, False, Yes and No.
|
||||
/// Boolean 'true' and 'false' will also continue to be supported for backwards compatibility.
|
||||
/// </summary>
|
||||
public string Encrypt
|
||||
public string? Encrypt
|
||||
{
|
||||
get
|
||||
{
|
||||
string value = GetOptionValue<string>("encrypt");
|
||||
string? value = GetOptionValue<string?>("encrypt");
|
||||
if(string.IsNullOrEmpty(value))
|
||||
{
|
||||
// Accept boolean values for backwards compatibility.
|
||||
value = GetOptionValue<bool>("encrypt").ToString();
|
||||
value = GetOptionValue<bool?>("encrypt")?.ToString();
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user