Files
danbooru/app/logical
evazion 089c304992 paginator: fix page counts for relations with group by clauses.
Fix an invalid SQL exception that occurs when the paginator tries to
do a COUNT(*) to calculate the page count of a relation that already
includes a GROUP BY + COUNT(*) clause. We need to nest the whole query
inside a `SELECT COUNT(*) FROM (...)` subquery so the inner COUNT(*)
doesn't mess up the outer COUNT(*).

Fixes #4285.
2020-02-05 14:27:48 -06:00
..
2019-11-09 14:42:30 -06:00
2019-08-01 00:06:18 -05:00
2018-08-24 12:10:51 -07:00
2019-12-22 21:23:37 -06:00