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

block / mysql
83%
master: 83%

Build:
Build:
LAST BUILD BRANCH: warning-count
DEFAULT BRANCH: master
Repo Added 04 Aug 2026 01:53AM UTC
Token I1zGjvGvgv8vXRcSsaOvUeqtnobi2phNd regen
Build 10 Last
Files 21
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

LAST BUILD ON BRANCH warning-count
branch: warning-count
CHANGE BRANCH
x
Reset
Sync Branches
  • warning-count
  • master
  • unified-query

27 Aug 2026 09:52PM UTC coverage: 82.659% (+0.05%) from 82.606%
33120091003

Pull #2

github

morgo
fix: keep the warning count until the next command

clearResult() was the wrong reset point. It runs at the start of every
statement, but it also runs from (*mysqlRows).Close — after skipRows has
already read the packet that carries the count. A caller that closes a
resultset without draining it (a proxy forwarding rows elsewhere) had the
count zeroed out from under it before it could read it.

Reset in resetSequence() instead: sending a command is what ends the
previous statement's diagnostics, which is the semantic the count is
supposed to follow anyway.

The existing integration coverage missed this because draining to EOF
nils out rows.mc, so Close returns early and never reaches clearResult.
Cover the undrained path too, plus a unit test pinning that clearResult
specifically does not touch the count.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Pull Request #2: conn: expose the OK/EOF packet warning count

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

4 existing lines in 1 file now uncovered.

3451 of 4175 relevant lines covered (82.66%)

2569384.31 hits per line

Relevant lines Covered
Build:
Build:
4175 RELEVANT LINES 3451 COVERED LINES
2569384.31 HITS PER LINE
Source Files on warning-count
  • Tree
  • List 21
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
33120091003 warning-count fix: keep the warning count until the next command clearResult() was the wrong reset point. It runs at the start of every statement, but it also runs from (*mysqlRows).Close — after skipRows has already read the packet that carries the count. A c... Pull #2 27 Aug 2026 09:53PM UTC morgo github
82.66
33119442546 warning-count review: correct the warning-count lifecycle docs Both comments on the PR were right, and both were about wording that described an earlier draft rather than the code. handleOkPacket no longer has a statusMoreResultsExists early return, so "recor... Pull #2 27 Aug 2026 09:45PM UTC morgo github
82.73
33118200785 warning-count 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 handleOkP... Pull #2 27 Aug 2026 09:28PM UTC morgo github
82.73
See All Builds (7)

Badge your Repo: mysql

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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