[Koha-bugs] [Bug 22082] ambiguous column in patron stats

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jan 8 15:00:26 CET 2019


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

--- Comment #1 from Fridolin SOMERS <fridolin.somers at biblibre.com> ---
Created attachment 83714
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=83714&action=edit
Bug 22082: ambiguous column in patron stats

In Reports > Patrons statistics, the combination of activity and extended
attributes generates an invalid SQL query with error :
ERROR 1052 (23000): Column 'borrowernumber' in IN/ALL/ANY subquery is ambiguous

This is because FROM contains tables borrowers and borrower_attributes both
containing borrowernumber column.

Test plan :
1) Be sure to have a patron extended attribute
2) Be sure you have some recent circulation activity
3) Go to Reports > Patrons statistics
4) Select 'active' in 'Patron activity' and 1 years of activity
5) Check 'Row' in 'Patron category'
6) Check 'Columns' in a extended attribute
7) Submit
8) Without patch you have no results, with patch you have exepected results

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


More information about the Koha-bugs mailing list