Koha/reports
Jonathan Druart f2253158d7 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>
2021-08-11 12:00:10 +02:00
..
acquisitions_stats.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
bor_issues_top.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
borrowers_out.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
borrowers_stats.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
cash_register_stats.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
cat_issues_top.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
catalogue_out.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
catalogue_stats.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
dictionary.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
guided_reports.pl Bug 28804: (bug 25026 follow-up) Handle SQL errors in reports 2021-08-11 12:00:10 +02:00
issues_avg_stats.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
issues_stats.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
itemslost.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
itemtypes.plugin Bug 26090: Fix "item types" report 2020-08-18 14:38:41 +02:00
manager.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
orders_by_fund.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
reports-home.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
reserves_stats.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
serials_stats.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00