[Bug 3315] New: Aggregate SQL clauses break pagination in guided reports
http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3315 Summary: Aggregate SQL clauses break pagination in guided reports Product: Koha Version: HEAD Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P5 Component: Reports AssignedTo: galen.charlton@liblime.com ReportedBy: rch@liblime.com Estimated Hours: 0.0 Change sponsored?: --- guided reports tries to do a count(*) on sql results to determine if it needs to paginate the output for the screen. If the saved query includes an aggregate clause, most notably GROUP BY, it counts incorrectly. See Garry Collum's comment on bug 2982 . I suggest a short term fix would be to test for aggregate clause in the sql, and if there is one, report to the template that we don't know how many results there are, so only show the first page. Force the user to download the csv if they want the complete results set until a more robust solution is found. -- Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3315 Ryan Higgins <rch@liblime.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |2982 -- Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3315 Kathleen Rippel <kdr@ckls.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kdr@ckls.org --- Comment #1 from Kathleen Rippel <kdr@ckls.org> 2009-07-01 16:38:30 --- Although the work-around is valid and is a down and dirty solution this is something that NEEDS to be addressed. As it is it is defintely NOT librarian-friendly, especially in libraries where the staff (often one person) are technologically-challenged. Although the idea of merely using .csv sounds easy to many of us, there are many librarians that do not know what the heck .csv is, let alone how to work with it in this context. The goal is to make Koha more user-friendly. Group by, etc., are important to some of the reports needed, so the results need to be displayed correctly to the user. -- Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
bugzilla-daemon@liblime.com