Koha/reports
Jonathan Druart e0d7ca0776 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

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2021-08-13 07:28:41 -04:00
..
acquisitions_stats.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
bor_issues_top.pl Bug 28523: Escape 'rank' in bor_issues_top.pl 2021-07-09 12:29:15 -04:00
borrowers_out.pl Bug 23271: Replace search_limited with search_with_library_limits 2021-04-21 15:25:07 +02:00
borrowers_stats.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
cash_register_stats.pl Bug 28264: (QA follow-up) Impliment fix for debit_type_code 2021-07-02 09:40:45 -04:00
cat_issues_top.pl Bug 28524: Escape 'rank' in cat_issues_top.pl 2021-07-09 13:44:43 -04:00
catalogue_out.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
catalogue_stats.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
dictionary.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
guided_reports.pl Bug 28804: (bug 25026 follow-up) Handle SQL errors in reports 2021-08-13 07:28:41 -04:00
issues_avg_stats.pl Bug 7806: Fix remaining occurrences of 0000-00-00 2021-03-01 11:16:42 +01:00
issues_stats.pl Bug 23271: Replace search_limited with search_with_library_limits 2021-04-21 15:25:07 +02:00
itemslost.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
itemtypes.plugin
manager.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
orders_by_fund.pl Bug 27486: Rename system preference delimiter to CSVDelimiter 2021-01-29 09:03:45 +01:00
reports-home.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
reserves_stats.pl Bug 23271: Replace search_limited with search_with_library_limits 2021-04-21 15:25:07 +02:00
serials_stats.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00