• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Warning: This build has drifted.
The coverage report for this pull request build may be inaccurate because its base commit is no longer the HEAD of its target branch.
This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

    • Learn more: For more information on this, see Tracking coverage changes for pull request builds.
    • Fix now: For a quick fix, rebase this PR at GitHub. Your next report should be accurate.
    • Prevent going forward: To avoid this issue with future PRs, see these Recommended CI Configurations.
New Repo Setting:
INCLUDE COVERAGE % WITH WARNINGS ABOUT DRIFTED BUILDS?

Enabling this setting will include a (potentially inaccurate) coverage % with warning messages in status updates for drifted builds.

Adjust setting

go-sql-driver / mysql / 43181274584
88%
master: 88%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v1.11.0
DEFAULT BRANCH: master
Ran 20 Nov 2026 10:00AM UTC
Jobs 23
Files 33
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Nov 2026 07:36AM UTC coverage: 86.758% (+0.07%) from 86.685%
43181274584

Pull #1852

github

giuliocalzo
Report and close on connection errors from the server

When a query exceeds the server's max_allowed_packet but not the client's
maxAllowedPacket, the server answers ERR 1153 (08S01) and closes the
connection. The driver usually failed while still writing the query and
returned the write error (broken pipe, connection reset by peer) without
reading the server's error; when it did read it, it kept the closed
connection as valid.

- writePacket: when a write fails after part of the command was sent,
  read a pending ERR packet with the bounded reader of the idle check
  (now pendingError) and return it.
- handleErrorPacket: after an error in SQLSTATE class 08 (connection
  exception), except 1047, close the connection so database/sql does not
  reuse it; the server error is still returned.

Fixes #1849

Signed-off-by: Giulio Calzolari <gcalzolari@nvidia.com>
Pull Request #1852: Report and close on connection errors from the server

18 of 19 new or added lines in 2 files covered. (94.74%)

3 existing lines in 1 file now uncovered.

4095 of 4720 relevant lines covered (86.76%)

1200124.13 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
94.74
6.86% conncheck_error.go

Coverage Regressions

Lines Coverage ∆ File
3
85.37
-1.46% connector.go
Jobs
ID Job ID Ran Files Coverage
1 macOS-Go-1.27-DB-mariadb-11.8 - 43181274584.1 20 Nov 2026 10:14AM UTC 32
84.0
GitHub Action Run
2 macOS-Go-1.27-DB-8.0 - 43181274584.2 20 Nov 2026 10:15AM UTC 32
83.92
GitHub Action Run
3 Linux-Go-1.27-DB-mariadb-11.4 - 43181274584.3 20 Nov 2026 10:05AM UTC 32
84.27
GitHub Action Run
4 Windows-Go-1.27-DB-8.4 - 43181274584.4 20 Nov 2026 10:04AM UTC 32
83.66
GitHub Action Run
5 Linux-Go-1.27-DB-mariadb-12.3 - 43181274584.5 20 Nov 2026 10:02AM UTC 32
84.27
GitHub Action Run
6 Windows-Go-1.27-DB-mariadb-10.11 - 43181274584.6 20 Nov 2026 10:06AM UTC 32
83.76
GitHub Action Run
7 Windows-Go-1.27-DB-9.7 - 43181274584.7 20 Nov 2026 10:04AM UTC 32
83.71
GitHub Action Run
8 Linux-Go-1.27-DB-8.4 - 43181274584.8 20 Nov 2026 10:04AM UTC 32
84.14
GitHub Action Run
9 Linux-Go-1.27-DB-mariadb-11.8 - 43181274584.9 20 Nov 2026 10:04AM UTC 32
84.32
GitHub Action Run
10 Linux-Go-1.27-DB-9.7 - 43181274584.10 20 Nov 2026 10:02AM UTC 32
84.09
GitHub Action Run
11 Windows-Go-1.27-DB-mariadb-11.4 - 43181274584.11 20 Nov 2026 10:02AM UTC 32
83.76
GitHub Action Run
12 Linux-Go-1.27-DB-8.0 - 43181274584.12 20 Nov 2026 10:05AM UTC 32
84.24
GitHub Action Run
13 Linux-Go-1.27-DB-mariadb-10.11 - 43181274584.13 20 Nov 2026 10:03AM UTC 32
84.27
GitHub Action Run
14 macOS-Go-1.27-DB-mariadb-10.11 - 43181274584.14 20 Nov 2026 10:10AM UTC 32
84.14
GitHub Action Run
15 Windows-Go-1.27-DB-mariadb-12.3 - 43181274584.15 20 Nov 2026 10:04AM UTC 32
83.61
GitHub Action Run
16 macOS-Go-1.27-DB-9.7 - 43181274584.16 20 Nov 2026 10:09AM UTC 32
83.82
GitHub Action Run
17 Linux-Go-1.25-DB-9.7 - 43181274584.17 20 Nov 2026 10:01AM UTC 31
84.99
GitHub Action Run
18 Windows-Go-1.27-DB-mariadb-11.8 - 43181274584.18 20 Nov 2026 10:03AM UTC 32
83.71
GitHub Action Run
19 Linux-Go-1.26-DB-9.7 - 43181274584.19 20 Nov 2026 10:00AM UTC 31
84.94
GitHub Action Run
20 macOS-Go-1.27-DB-mariadb-11.4 - 43181274584.20 20 Nov 2026 10:12AM UTC 32
84.19
GitHub Action Run
21 macOS-Go-1.27-DB-8.4 - 43181274584.21 20 Nov 2026 10:10AM UTC 32
83.82
GitHub Action Run
22 macOS-Go-1.27-DB-mariadb-12.3 - 43181274584.22 20 Nov 2026 10:06AM UTC 32
84.0
GitHub Action Run
23 Windows-Go-1.27-DB-8.0 - 43181274584.23 20 Nov 2026 10:07AM UTC 32
83.71
GitHub Action Run
Source Files on build 43181274584
  • Tree
  • List 33
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1852
  • PR Base - master (#43173433140)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc