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

block / mysql / 30870374728
83%

Build:
DEFAULT BRANCH: master
Ran 04 Aug 2026 02:00AM UTC
Jobs 32
Files 20
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

04 Aug 2026 01:58AM UTC coverage: 82.51%. First build
30870374728

push

github

web-flow
conn: add unified QueryResultContext for arbitrary SQL (#1)

* conn: add unified QueryResultContext for arbitrary SQL

A caller that receives arbitrary SQL (a proxy, a REPL) must classify each
statement before executing it, because database/sql forces the choice
between QueryContext and ExecContext up front — and a misclassification
either discards a resultset (Exec) or loses the OK metadata (Query). The
MySQL protocol itself never needed the decision in advance: a COM_QUERY
response is self-describing (an OK packet or a column-count packet).

QueryResultContext surfaces exactly that: it executes a statement and
returns (rows, nil) for a resultset response or (nil, result) for an OK
response. The body mirrors mysqlConn.query verbatim, except an OK response
is reported the way Exec reports it instead of being hidden inside an
empty, done resultset. Reached through (*sql.Conn).Raw with a structural
interface assertion, so no new database/sql plumbing is needed; args are
normalized with CheckNamedValue exactly as database/sql would.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* conn: deliver QueryResultContext rows as raw wire text

Rows produced by QueryResultContext now return every non-NULL cell as
its MySQL wire text ([]byte aliasing the connection buffer) instead of
parsing numeric and temporal columns into Go types. Proxy-style callers
forward values verbatim, so the parse/format round trip is pure
overhead — and it is lossy: zero dates become Go's zero time (year 1),
fractional-second padding is trimmed, and float formatting can drift
from the server's representation.

Regular Query/Exec paths are unchanged; the flag only exists on rows
that never pass through database/sql conversion.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* conn: reject named params and fix scan types on the unified path

Two divergences from the normal query path, both found in review.

QueryResultContext accepted driver.NamedValue with Name set an... (continued)

56 of 73 new or added lines in 3 files covered. (76.71%)

3439 of 4168 relevant lines covered (82.51%)

2573399.75 hits per line

Uncovered Changes

Lines Coverage ∆ File
17
72.13
unified.go
Jobs
ID Job ID Ran Files Coverage
1 Linux-Go-1.26-DB-mariadb-10.11 - 30870374728.1 04 Aug 2026 02:00AM UTC 19
82.21
GitHub Action Run
2 macOS-Go-1.26-DB-8.0 - 30870374728.2 04 Aug 2026 02:00AM UTC 19
81.87
GitHub Action Run
3 Windows-Go-1.26-DB-8.4 - 30870374728.3 04 Aug 2026 02:01AM UTC 19
81.91
GitHub Action Run
4 Windows-Go-1.26-DB-mariadb-10.11 - 30870374728.4 04 Aug 2026 02:01AM UTC 19
81.86
GitHub Action Run
5 Windows-Go-1.26-DB-mariadb-12.3 - 30870374728.5 04 Aug 2026 02:01AM UTC 19
81.86
GitHub Action Run
6 macOS-Go-1.26-DB-9.0 - 30870374728.6 04 Aug 2026 02:00AM UTC 19
81.94
GitHub Action Run
7 Linux-Go-1.25-DB-9.0 - 30870374728.7 04 Aug 2026 02:00AM UTC 19
81.94
GitHub Action Run
8 macOS-Go-1.26-DB-mariadb-10.5 - 30870374728.8 04 Aug 2026 02:00AM UTC 19
81.85
GitHub Action Run
9 Linux-Go-1.26-DB-mariadb-11.4 - 30870374728.9 04 Aug 2026 02:00AM UTC 19
82.21
GitHub Action Run
10 Windows-Go-1.26-DB-mariadb-11.4 - 30870374728.10 04 Aug 2026 02:01AM UTC 19
81.86
GitHub Action Run
11 macOS-Go-1.26-DB-mariadb-12.3 - 30870374728.11 04 Aug 2026 02:00AM UTC 19
82.04
GitHub Action Run
12 Linux-Go-1.26-DB-8.0 - 30870374728.12 04 Aug 2026 02:00AM UTC 19
82.14
GitHub Action Run
13 macOS-Go-1.26-DB-mariadb-10.6 - 30870374728.13 04 Aug 2026 02:00AM UTC 19
82.04
GitHub Action Run
14 Linux-Go-1.26-DB-mariadb-10.6 - 30870374728.14 04 Aug 2026 02:00AM UTC 19
82.21
GitHub Action Run
15 macOS-Go-1.26-DB-mariadb-11.4 - 30870374728.15 04 Aug 2026 02:00AM UTC 19
81.94
GitHub Action Run
16 Windows-Go-1.26-DB-mariadb-11.8 - 30870374728.16 04 Aug 2026 02:01AM UTC 19
82.0
GitHub Action Run
17 Linux-Go-1.26-DB-8.4 - 30870374728.17 04 Aug 2026 02:00AM UTC 19
82.04
GitHub Action Run
18 Linux-Go-1.24-DB-9.0 - 30870374728.18 04 Aug 2026 02:00AM UTC 19
82.14
GitHub Action Run
19 Linux-Go-1.26-DB-mariadb-12.3 - 30870374728.19 04 Aug 2026 02:00AM UTC 19
82.21
GitHub Action Run
20 Windows-Go-1.26-DB-5.7 - 30870374728.20 04 Aug 2026 02:02AM UTC 19
81.88
GitHub Action Run
21 Linux-Go-1.26-DB-mariadb-11.8 - 30870374728.21 04 Aug 2026 02:01AM UTC 19
82.21
GitHub Action Run
22 macOS-Go-1.26-DB-mariadb-11.8 - 30870374728.22 04 Aug 2026 02:00AM UTC 19
82.09
GitHub Action Run
23 macOS-Go-1.26-DB-5.7 - 30870374728.23 04 Aug 2026 02:00AM UTC 19
81.87
GitHub Action Run
24 Windows-Go-1.26-DB-mariadb-10.5 - 30870374728.24 04 Aug 2026 02:01AM UTC 19
81.86
GitHub Action Run
25 macOS-Go-1.26-DB-mariadb-10.11 - 30870374728.25 04 Aug 2026 02:00AM UTC 19
82.09
GitHub Action Run
26 Linux-Go-1.26-DB-mariadb-10.5 - 30870374728.26 04 Aug 2026 02:00AM UTC 19
82.02
GitHub Action Run
27 Windows-Go-1.26-DB-8.0 - 30870374728.27 04 Aug 2026 02:02AM UTC 19
81.91
GitHub Action Run
28 macOS-Go-1.26-DB-8.4 - 30870374728.28 04 Aug 2026 02:00AM UTC 19
81.85
GitHub Action Run
29 Windows-Go-1.26-DB-mariadb-10.6 - 30870374728.29 04 Aug 2026 02:01AM UTC 19
81.91
GitHub Action Run
30 Linux-Go-1.26-DB-9.0 - 30870374728.30 04 Aug 2026 02:00AM UTC 19
82.04
GitHub Action Run
31 Linux-Go-1.26-DB-5.7 - 30870374728.31 04 Aug 2026 02:00AM UTC 19
81.9
GitHub Action Run
32 Windows-Go-1.26-DB-9.0 - 30870374728.32 04 Aug 2026 02:02AM UTC 19
81.76
GitHub Action Run
Source Files on build 30870374728
  • Tree
  • List 20
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • c85c5f04 on github
  • 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