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

dal-go / dalgo2sql / 34354466148
100%

Build:
DEFAULT BRANCH: main
Ran 09 Sep 2026 01:01PM UTC
Jobs 1
Files 18
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

09 Sep 2026 01:01PM UTC coverage: 88.516% (+0.2%) from 88.308%
34354466148

push

github

web-flow
fix(reader_base): bind TextQuery args correctly instead of passing dal.QueryArg itself (#177)

dal.NewTextQuery accepts dal.QueryArg{Name, Value} values, but
getReaderBase's TextQuery branch passed each arg struct straight
through as a[i] = arg — database/sql has no idea how to convert a
dal.QueryArg into a bind value, so any TextQuery with a non-empty
Args() failed outright ("sql: converting argument $1 type: unsupported
type dal.QueryArg, a struct"). Named @param/:param/$param placeholders
in native SQL could never bind at all; pkg/secureread.RunNativeSQL
(datatug-cli) currently works around this by binding placeholders
itself before ever reaching this adapter.

Fix: a named arg (Name != "") becomes a sql.NamedArg via sql.Named, so
an @name-style placeholder binds by name; a positional arg (Name == "")
passes its Value straight through for ordinary ?/$N placeholders.

Reproduced first with three new tests against a real in-memory SQLite
database (modernc.org/sqlite, not a mock) — positional-only,
named-only, and mixed — confirmed all three fail with the exact error
above against the unfixed code, then pass after the one-line fix.

Checked whether the pushed layered-acl-query branch already touched
this: it only changes reader_base.go's dal.StructuredQuery branch
(dialect-aware compilation), not the dal.TextQuery arg-binding branch
this fixes — no overlap, nothing duplicated.


Claude-Session: https://claude.ai/code/session_01Dd3aoE41JSShyUuUmW8sSi

Co-authored-by: Alexander Trakhimenok <trakhimenok@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>

5 of 5 new or added lines in 1 file covered. (100.0%)

1002 of 1132 relevant lines covered (88.52%)

0.89 hits per line

Jobs
ID Job ID Ran Files Coverage
1 34354466148.1 09 Sep 2026 01:01PM UTC 18
88.52
GitHub Action Run
Source Files on build 34354466148
  • Tree
  • List 18
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 98b9d6f7 on github
  • Prev Build on main (#34335001010)
  • Next Build on main (#34448064373)
  • 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