[Koha-bugs] [Bug 23982] New: Count/pagination broken for reports with duplicated column names

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Nov 6 21:01:52 CET 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23982

            Bug ID: 23982
           Summary: Count/pagination broken for reports with duplicated
                    column names
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Reports
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: nick at bywatersolutions.com
        QA Contact: testopia at bugs.koha-community.org

bug 23624 simplified how we get the count of rows in a report, however, it
breaks under certain circumstances.

A report like:
SELECT * FROM issues JOIN borrowers USING (borrowernumber)

will have two borrowernumber columns - SQL will give us there rsults, but if we
try to wrap them in a SELECT COUNT(*) FROM (report) it throws a duplicated
column error.

I don't know an easy fix except to state that one must name the columns they
want to avoid duplication

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list