mssql: explicit disable encryption when its disabled (#46546)

This commit is contained in:
Dirkco du Plessis 2022-03-30 15:14:04 +01:00 committed by GitHub
parent d3b2ffed35
commit b52794601d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,6 +169,8 @@ func generateConnectionString(dsInfo sqleng.DataSourceInfo) (string, error) {
if certificate != "" { if certificate != "" {
connStr += fmt.Sprintf("certificate=%s;", certificate) connStr += fmt.Sprintf("certificate=%s;", certificate)
} }
} else if encrypt == "disable" {
connStr += fmt.Sprintf("encrypt=%s;", dsInfo.JsonData.Encrypt)
} }
return connStr, nil return connStr, nil
} }