[Koha-bugs] [Bug 28804] 500 Error when running report with bad syntax

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Aug 4 09:04:56 CEST 2021


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

--- Comment #2 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
Created attachment 123446
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=123446&action=edit
Bug 28804: (bug 25026 follow-up) Handle SQL errors in reports

Since bug 25026 DBMS errors are raised, but the report module is not
dealing correctly with the errors.
If an error occurred in execute_query, next queries will fail as well,
we should skip them.

Test plan:
1. Create report from SQL queries, containing errors (invalid syntax, etc.)
'SELECT id FROM borrowers' can do it
2. Execute the query
=> Without this patch you get a 500
=> With this patch applied you see that the error raised at DBMS level
is propagated to the UI
3. Confirm that there is no regression on valid queries

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


More information about the Koha-bugs mailing list