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

huandu / go-sqlbuilder / 32086299391
96%
master: 96%

Build:
Build:
LAST BUILD BRANCH: fix/interpolate-quote-escaping
DEFAULT BRANCH: master
Ran 21 Aug 2026 10:29AM UTC
Jobs 1
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

18 Aug 2026 12:54AM UTC coverage: 96.198% (+0.02%) from 96.181%
32086299391

Pull #244

github

youdie006
Interpolate: keep ClickHouse whole-number floats and non-finite values typed correctly

In encodeValue the Float32/Float64 cases rendered floats with
strconv.AppendFloat(..., 'g', -1, N) and ignored flavor, unlike the adjacent
flavor-aware String/Slice cases. For ClickHouse this had two symptoms: a
whole-number float such as float64(1) rendered as bare '1' (ClickHouse infers an
integer type and silently narrows a Float column), and NaN/+Inf/-Inf rendered in
Go's mixed case (ClickHouse only accepts lowercase nan/inf/-inf).

Route both cases through a new encodeFloat helper that, for ClickHouse only,
emits lowercase non-finite spellings and appends '.0' when strconv produced a
bare integer (detected via bytes.ContainsAny(rendered, ".eE") so 1e+21 is left
untouched). Every other flavor keeps its exact existing rendering.

Fixes #243
Pull Request #244: Interpolate: keep ClickHouse whole-number floats and non-finite values typed correctly

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

3998 of 4156 relevant lines covered (96.2%)

1.08 hits per line

Jobs
ID Job ID Ran Files Coverage
1 32086299391.1 21 Aug 2026 10:29AM UTC 20
96.2
GitHub Action Run
Source Files on build 32086299391
  • Tree
  • List 20
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #244
  • PR Base - master (#27905556377)
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