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

stephenafamo / scan
90%
main: 91%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v0.9.0
DEFAULT BRANCH: main
Repo Added 26 Dec 2022 07:32PM UTC
Files 10
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 fix/close-rows-in-fromrows
branch: fix/close-rows-in-fromrows
CHANGE BRANCH
x
Reset
  • fix/close-rows-in-fromrows
  • fix/each-rows-err-check
  • main
  • perf/reuse-row-scan-buffers
  • perf/schedule-scan-by-index
  • refs/tags/v0.1.0
  • refs/tags/v0.1.1
  • refs/tags/v0.2.0
  • refs/tags/v0.3.0
  • refs/tags/v0.4.0
  • refs/tags/v0.4.1
  • refs/tags/v0.4.2
  • refs/tags/v0.5.0
  • refs/tags/v0.6.0
  • refs/tags/v0.6.1
  • refs/tags/v0.6.2
  • refs/tags/v0.7.0
  • refs/tags/v0.8.0
  • refs/tags/v0.9.0
  • revert-3-named-args-v2
  • scan-plan-once
  • scan-rowskip

18 Jul 2026 12:41AM UTC coverage: 89.752% (-0.3%) from 90.016%
29624055136

Pull #10

github

Dima Makushin
fix: check rows.Err() after iteration in Each to surface mid-stream errors

Unlike OneFromRows and AllFromRows, Each never consulted rows.Err()
after its for rows.Next() loop exited. If Next() returns false due to
a database error (network disconnect, context deadline, SQL error from
a function mid-result-set), the error was silently dropped and the
caller's range loop completed as if everything was fine.

pgx's own ForEachRow, CollectRows, AppendRows, and the database/sql
docs all follow the same pattern: check Err() after the loop. This
fix brings Each in line.
Pull Request #10: fix: close rows in OneFromRows, AllFromRows and CursorFromRows to pre…

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

10 existing lines in 1 file now uncovered.

578 of 644 relevant lines covered (89.75%)

42.22 hits per line

Relevant lines Covered
Build:
Build:
644 RELEVANT LINES 578 COVERED LINES
42.22 HITS PER LINE
Source Files on fix/close-rows-in-fromrows
  • Tree
  • List 9
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
29624055136 fix/close-rows-in-fromrows fix: check rows.Err() after iteration in Each to surface mid-stream errors Unlike OneFromRows and AllFromRows, Each never consulted rows.Err() after its for rows.Next() loop exited. If Next() returns false due to a database error (network disconn... Pull #10 18 Jul 2026 08:11AM UTC Dima Makushin github
89.75
29624104139 fix/close-rows-in-fromrows fix: close rows in OneFromRows, AllFromRows and CursorFromRows to prevent connection leak OneFromRows and AllFromRows now use defer rows.Close() to ensure the underlying rows are always released back to the pool. Previously callers were responsib... Pull #10 18 Jul 2026 01:38AM UTC Dima Makushin github
89.86
See All Builds (65)
  • 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