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

ICanBoogie / ActiveRecord / 46308876518
93%

Build:
DEFAULT BRANCH: 7.0
Ran 29 Nov 2026 08:52PM UTC
Jobs 1
Files 113
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

29 Nov 2026 08:51PM UTC coverage: 92.874% (+0.4%) from 92.444%
46308876518

push

github

olvlvl
fix(query): correct the results of the aggregates

`count()` returned the count of the first group with `group()`, ignored
`take()` and `SELECT DISTINCT`, and failed with `skip()`. It now counts
the rows that the query returns, with a subquery when needed.

`average()`, `sum()`, `minimum()`, `maximum()`, and `$rc` truncated
decimal values, and the computations failed when no record matched. Their
return types now allow what the databases return.

`count()` and the computations failed on PostgreSQL when the query was
ordered, so the `ORDER BY` clause is no longer rendered where it can't
change the result.

BREAKING CHANGE: `Query::count()` counts the groups of a grouped query,
within the limits of `skip()` and `take()`. `average()` returns `?float`,
`sum()` returns `int|float`, and `minimum()` and `maximum()` return
`int|float|string|null`. `Query::$rc` and `Statement::$rc` can be a
`float`. `skip()` with a computation throws `LogicException`.

20 of 22 new or added lines in 1 file covered. (90.91%)

1955 of 2105 relevant lines covered (92.87%)

75.54 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
84.64
3.64% lib/ActiveRecord/Query.php
Jobs
ID Job ID Ran Files Coverage
1 46308876518.1 29 Nov 2026 08:52PM UTC 113
92.87
GitHub Action Run
Source Files on build 46308876518
  • Tree
  • List 113
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • fd5454ff on github
  • Prev Build on 7.0 (#46308125999)
  • Next Build on 7.0 (#46309474377)
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