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

stephenafamo / bob / 38203344148
53%
main: 53%

Build:
Build:
LAST BUILD BRANCH: fix/psql-from-placeholder-offsets
DEFAULT BRANCH: main
Ran 12 Oct 2026 04:28AM UTC
Jobs 2
Files 252
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

12 Oct 2026 04:17AM UTC coverage: 53.469% (+0.3%) from 53.216%
38203344148

Pull #783

github

jalaziz
fix!: use stable per-query aliases for Preload and multi-hop Joins

Preload and generated multi-hop Joins suffixed table aliases with the
process-global bob.NextUniqueInt counter, so building the same query
twice produced different SQL and defeated pgx prepared-statement caching
(#741).

Aliases now come from a counter on bob.Load (NextQueryAlias: bob_q0,
bob_q1, ...). Preloader.Apply passes the query's allocator to the
preload tree through the new orm.WithNextAlias option, and generated
multi-hop joins allocate intermediate aliases when applied. Preloaders
called without an allocator fall back to unique bob_g aliases.

Also fixes two Preload bugs found along the way:
- PreloadAs on multi-side relationships aliased every side, producing
  duplicate aliases; it now applies only to the final side.
- to_where columns were qualified with the parent table instead of the
  joined table, producing invalid or incorrect ON clauses.

BREAKING CHANGE: orm.Preloader now takes optional ...orm.PreloaderOpt
after parent. Calls such as loader("") still compile, but functions
declared with the old exact signature must add the variadic parameter.
Pull Request #783: fix!: use stable per-query aliases for Preload and multi-hop Joins

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

7 existing lines in 1 file now uncovered.

12394 of 23180 relevant lines covered (53.47%)

733.44 hits per line

Coverage Regressions

Lines Coverage ∆ File
7
78.66
-4.27% gen/aliases.go
Jobs
ID Job ID Ran Files Coverage
1 go-stable - 38203344148.1 12 Oct 2026 04:33AM UTC 252
49.88
GitHub Action Run
2 go-oldstable - 38203344148.2 12 Oct 2026 04:28AM UTC 252
49.06
GitHub Action Run
Source Files on build 38203344148
  • Tree
  • List 252
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #783
  • PR Base - main (#37399450007)
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