Conversation
Codecov Report
@@ Coverage Diff @@
## master #736 +/- ##
==========================================
+ Coverage 71.29% 72.57% +1.28%
==========================================
Files 24 24
Lines 5386 5397 +11
==========================================
+ Hits 3840 3917 +77
+ Misses 1301 1234 -67
- Partials 245 246 +1
Continue to review full report at Codecov.
|
tds.go
Outdated
| } | ||
| if config == nil { | ||
| config, err = msdsn.SetupTLS("", false, p.Host) | ||
| config, err = msdsn.SetupTLS("", false, p.Host, 0) |
There was a problem hiding this comment.
I try to many way add the test case . but no one can cover this line.
|
Does anyone care about this problem? |
|
You can clone the issue and the PR into github.com/microsoft/go-mssqldb. We are going to maintain a fork there. |
| if ok { | ||
| tlsversion = strings.ToUpper(tlsversion) | ||
| switch tlsversion { | ||
| case "TLS1.0": |
There was a problem hiding this comment.
why not just "1.0" and "1.2" etc since we already know the parameter name is about TLS?
There was a problem hiding this comment.
@zhiyunliu we'd consider taking this change in the microsoft fork
github.com/microsoft/go-mssqldb
add the tls min version to dsn parameter.
we can use [tlsminversion=tls1.1] to set tls version.
the dsn like this .(server=localhost;port=1433;database=demo;user id=admin;password=123456;tlsminversion=tls1.3)
#726