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

block / mysql
83%
master: 83%

Build:
Build:
LAST BUILD BRANCH: unified-query
DEFAULT BRANCH: master
Repo Added 04 Aug 2026 01:53AM UTC
Token I1zGjvGvgv8vXRcSsaOvUeqtnobi2phNd regen
Build 2 Last
Files 20
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 unified-query
branch: unified-query
CHANGE BRANCH
x
Reset
Sync Branches
  • unified-query
  • master

04 Aug 2026 01:02AM UTC coverage: 82.606%. First build
30870040810

Pull #1

github

morgo
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 and bound
it positionally. QueryContext and ExecContext route args through
namedValueToValue, which rejects named parameters outright; the unified
path skipped that and went straight to CheckNamedValue. Under an
InterpolateParams DSN a caller passing sql.Named would have silently
got a positional bind. Reuse namedValueToValue for the rejection, then
apply CheckNamedValue to the extracted values -- Raw still bypasses
database/sql's conversion, so that part is still needed here.

ColumnTypeScanType reported the parsed Go type (int32, sql.NullTime,
...) while raw rows deliver every non-NULL cell as []byte, so a caller
asserting driver.RowsColumnTypeScanType was told the wrong thing about
what Next yields. Report scanTypeBytes when raw is set. The other
ColumnType methods describe the column rather than the delivered value
and stay as they are.

Both are covered in TestQueryResultContext and fail without the fix.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Pull Request #1: conn: add unified QueryResultContext for arbitrary SQL

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

3443 of 4168 relevant lines covered (82.61%)

2573385.23 hits per line

Relevant lines Covered
Build:
Build:
4168 RELEVANT LINES 3443 COVERED LINES
2573385.23 HITS PER LINE
Source Files on unified-query
  • Tree
  • List 20
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
30870040810 unified-query 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 and bound it positionally. QueryContext and ExecContex... Pull #1 04 Aug 2026 01:53AM UTC morgo github
82.61
See All Builds (2)

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