860f1f70e5
This patch enforces SELECT-only SQL in the reports module. It introduces code to check SQL in two places. The first is when a save is attempted on a user constructed SQL statement. If a non-SELECT SQL statement is entered, the user will be presented with an error message and a button giving the option of editing the SQL. The second is when any SQL is executed. If execution of a non-SELECT SQL statement is attempted, the user is presented with an error message and instructed to delete that report as the SQL is invalid. The second check is intended as a safety net as no non-SELECT SQL should ever be saved. It may be well to document the proper usage of the direct SQL entry type report. Signed-off-by: Joshua Ferraro <jmf@liblime.com> |
||
---|---|---|
.. | ||
acquisitions_stats.tmpl | ||
bor_issues_top.tmpl | ||
borrowers_out.tmpl | ||
borrowers_stats.tmpl | ||
cat_issues_top.tmpl | ||
catalogue_out.tmpl | ||
catalogue_stats.tmpl | ||
dictionary.tmpl | ||
guided_reports_start.tmpl | ||
issues_avg_stats.tmpl | ||
issues_by_borrower_category.tmpl | ||
issues_stats.tmpl | ||
itemslost.tmpl | ||
itemtypes.tmpl | ||
reports-home.tmpl | ||
reservereport.tmpl | ||
stats_screen.tmpl |