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

dal-go / dalgo2sql / 37234131972
100%

Build:
DEFAULT BRANCH: main
Ran 04 Oct 2026 08:58PM UTC
Jobs 1
Files 22
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 Oct 2026 08:57PM UTC coverage: 100.0%. Remained the same
37234131972

push

github

web-flow
fix(sql): fail closed on the legacy text emitter for non-plain names and values (#205)

emitSQL now returns (string, error) and refuses, with an error wrapping
dal.ErrNotSupported, any collection, schema, alias, field or column-alias
name that is not a plain identifier, any string constant containing a
backslash, bracket or control character, and any node it cannot prove safe.
getReaderBase returns that error before executing any SQL.

The guard fails closed:

- An aggregate function name is accepted only from the allow-list the structured
  compiler uses (COUNT, SUM, AVG, MIN, MAX), in every position including WHERE.
- A constant is accepted only when its rendering is exactly what the guard
  checked: only unnamed slice types (a named type such as json.RawMessage may
  carry its own marshaller), no NaN or infinities, no time outside the range
  encoding/json renders, no time inside an Array (printed with a caller-chosen
  zone name).
- The statement text is built with dal.QueryString(q), reading the same
  accessors the guard walked, not a wrapper's own String().
- A refusal names the position and the reason only, never the caller's name,
  operator or value.

Source commits:

- c63ae3e511af fix(sql): fail closed on the legacy text emitter for non-plain names and values
  emitSQL now returns (string, error) and refuses, with an error wrapping
  dal.ErrNotSupported, any collection, schema, alias, field or column-alias
  name that is not a plain identifier, any string constant containing a
  backslash, bracket or control character, and any node it cannot prove safe.
  getReaderBase returns that error before executing any SQL.
  Delivers plan SQL-01.
- 136e4d18cb76 fix(sql): restrict legacy emitter aggregates, constants and error text

Pull request: dal-go/dalgo2sql#205
Review: https://github.com/dal-go/dalgo2sql/pull/205#issuecomment-5984307102

232 of 232 new or added lines in 2 files covered. (100.0%)

2791 of 2791 relevant lines covered (100.0%)

1.01 hits per line

Jobs
ID Job ID Ran Files Coverage
1 37234131972.1 04 Oct 2026 08:58PM UTC 22
100.0
GitHub Action Run
Source Files on build 37234131972
  • Tree
  • List 22
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 34b2e4db on github
  • Prev Build on main (#37234049786)
  • Next Build on main (#37234352459)
  • 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