denisenkom / go-mssqldb

Microsoft SQL server driver written in go language
BSD 3-Clause "New" or "Revised" License
1.82k stars 499 forks source link

wrap connection error #766

Closed prochac closed 2 years ago

prochac commented 2 years ago

Then it's possible to assign error by errors.As to *net.OpError. It allows us to determine if connection timeouted or was refused.

codecov[bot] commented 2 years ago

Codecov Report

Merging #766 (0c164a4) into master (1598eaf) will decrease coverage by 0.11%. The diff coverage is 0.00%.

:exclamation: Current head 0c164a4 differs from pull request most recent head 9f3df54. Consider uploading reports for the commit 9f3df54 to get more accurate results

@@            Coverage Diff             @@
##           master     #766      +/-   ##
==========================================
- Coverage   71.32%   71.21%   -0.12%     
==========================================
  Files          24       24              
  Lines        5388     5388              
==========================================
- Hits         3843     3837       -6     
- Misses       1301     1304       +3     
- Partials      244      247       +3     
Impacted Files Coverage Δ
tds.go 65.85% <0.00%> (-0.37%) :arrow_down:
token.go 63.77% <0.00%> (-0.45%) :arrow_down:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

prochac commented 2 years ago

Opened for M$ fork https://github.com/microsoft/go-mssqldb/pull/58


And closed