• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

block / mysql / 33118200785
83%
master: 83%

Build:
Build:
LAST BUILD BRANCH: warning-count
DEFAULT BRANCH: master
Ran 27 Aug 2026 09:28PM UTC
Jobs 32
Files 21
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

27 Aug 2026 09:25PM UTC coverage: 82.734% (+0.1%) from 82.606%
33118200785

Pull #2

github

morgo
conn: expose the OK/EOF packet warning count

MySQL reports how many warnings a statement raised in the packet that
terminates its response, but the driver dropped the field on the floor: a
literal `// warning count [2 bytes]` comment in handleOkPacket with no
parse behind it, and three copies of the resultset terminator reader that
skipped straight past it to the status flags.

Without the count, a caller that wants to surface warnings has only bad
options. The diagnostics themselves live in per-connection state that
only SHOW WARNINGS can read, so reading them costs a round trip; with no
count to gate on, that round trip has to be spent after every statement,
warnings or not. The count is what makes it affordable — and it is also
what a proxy needs to put in its own OK packet, since clients such as
Connector/J only ask for warnings when the count they were given is
non-zero.

Record it on the connection alongside the status flags, clear it in
clearResult() so one statement's count cannot be read as the next one's,
and expose it as (*mysqlConn).Warnings() for callers reaching the
connection through (*sql.Conn).Raw.

The three inlined resultset terminator readers collapse into one
readResultsetTerminator method. They were already identical; the warning
count made keeping them identical harder, because an EOF packet orders
warnings before status and an 0xFE-headered OK packet orders them after,
so each copy would have had to get that backwards independently.
Pull Request #2: conn: expose the OK/EOF packet warning count

29 of 29 new or added lines in 3 files covered. (100.0%)

189 existing lines in 2 files now uncovered.

3450 of 4170 relevant lines covered (82.73%)

2572360.81 hits per line

Coverage Regressions

Lines Coverage ∆ File
109
76.18
0.0% connection.go
80
85.33
0.44% packets.go
Jobs
ID Job ID Ran Files Coverage
1 Windows-Go-1.26-DB-mariadb-12.3 - 33118200785.1 27 Aug 2026 09:30PM UTC 20
82.09
GitHub Action Run
2 Windows-Go-1.26-DB-mariadb-10.5 - 33118200785.2 27 Aug 2026 09:29PM UTC 20
81.99
GitHub Action Run
3 Linux-Go-1.25-DB-9.0 - 33118200785.3 27 Aug 2026 09:28PM UTC 20
82.07
GitHub Action Run
4 macOS-Go-1.26-DB-mariadb-10.11 - 33118200785.4 27 Aug 2026 09:28PM UTC 20
82.12
GitHub Action Run
5 Windows-Go-1.26-DB-mariadb-10.6 - 33118200785.5 27 Aug 2026 09:29PM UTC 20
81.99
GitHub Action Run
6 macOS-Go-1.26-DB-5.7 - 33118200785.6 27 Aug 2026 09:28PM UTC 20
81.86
GitHub Action Run
7 Linux-Go-1.26-DB-mariadb-12.3 - 33118200785.7 27 Aug 2026 09:28PM UTC 20
82.19
GitHub Action Run
8 Linux-Go-1.26-DB-8.0 - 33118200785.8 27 Aug 2026 09:28PM UTC 20
82.17
GitHub Action Run
9 Linux-Go-1.24-DB-9.0 - 33118200785.9 27 Aug 2026 09:28PM UTC 20
82.12
GitHub Action Run
10 Linux-Go-1.26-DB-mariadb-10.5 - 33118200785.10 27 Aug 2026 09:28PM UTC 20
82.15
GitHub Action Run
11 macOS-Go-1.26-DB-8.0 - 33118200785.11 27 Aug 2026 09:28PM UTC 20
82.1
GitHub Action Run
12 macOS-Go-1.26-DB-8.4 - 33118200785.12 27 Aug 2026 09:29PM UTC 20
82.15
GitHub Action Run
13 macOS-Go-1.26-DB-9.0 - 33118200785.13 27 Aug 2026 09:28PM UTC 20
82.0
GitHub Action Run
14 macOS-Go-1.26-DB-mariadb-10.5 - 33118200785.14 27 Aug 2026 09:28PM UTC 20
82.12
GitHub Action Run
15 Linux-Go-1.26-DB-8.4 - 33118200785.15 27 Aug 2026 09:28PM UTC 20
82.22
GitHub Action Run
16 Windows-Go-1.26-DB-5.7 - 33118200785.16 27 Aug 2026 09:31PM UTC 20
81.87
GitHub Action Run
17 macOS-Go-1.26-DB-mariadb-12.3 - 33118200785.17 27 Aug 2026 09:29PM UTC 20
82.22
GitHub Action Run
18 Linux-Go-1.26-DB-mariadb-11.4 - 33118200785.18 27 Aug 2026 09:28PM UTC 20
82.19
GitHub Action Run
19 Windows-Go-1.26-DB-8.4 - 33118200785.19 27 Aug 2026 09:30PM UTC 20
81.94
GitHub Action Run
20 Windows-Go-1.26-DB-8.0 - 33118200785.20 27 Aug 2026 09:30PM UTC 20
81.94
GitHub Action Run
21 Windows-Go-1.26-DB-mariadb-11.4 - 33118200785.21 27 Aug 2026 09:29PM UTC 20
82.09
GitHub Action Run
22 Linux-Go-1.26-DB-5.7 - 33118200785.22 27 Aug 2026 09:29PM UTC 20
82.12
GitHub Action Run
23 Linux-Go-1.26-DB-mariadb-10.6 - 33118200785.23 27 Aug 2026 09:29PM UTC 20
82.24
GitHub Action Run
24 Linux-Go-1.26-DB-mariadb-10.11 - 33118200785.24 27 Aug 2026 09:28PM UTC 20
82.34
GitHub Action Run
25 Linux-Go-1.26-DB-mariadb-11.8 - 33118200785.25 27 Aug 2026 09:29PM UTC 20
82.1
GitHub Action Run
26 Windows-Go-1.26-DB-mariadb-10.11 - 33118200785.26 27 Aug 2026 09:29PM UTC 20
81.94
GitHub Action Run
27 Windows-Go-1.26-DB-9.0 - 33118200785.27 27 Aug 2026 09:29PM UTC 20
82.04
GitHub Action Run
28 Windows-Go-1.26-DB-mariadb-11.8 - 33118200785.28 27 Aug 2026 09:29PM UTC 20
82.13
GitHub Action Run
29 macOS-Go-1.26-DB-mariadb-11.4 - 33118200785.29 27 Aug 2026 09:28PM UTC 20
82.12
GitHub Action Run
30 macOS-Go-1.26-DB-mariadb-10.6 - 33118200785.30 27 Aug 2026 09:28PM UTC 20
82.22
GitHub Action Run
31 macOS-Go-1.26-DB-mariadb-11.8 - 33118200785.31 27 Aug 2026 09:28PM UTC 20
82.22
GitHub Action Run
32 Linux-Go-1.26-DB-9.0 - 33118200785.32 27 Aug 2026 09:28PM UTC 20
82.27
GitHub Action Run
Source Files on build 33118200785
  • Tree
  • List 21
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #2
  • PR Base - master (#33117969512)
  • Delete
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