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

--- Comment #11 from Kyle M Hall (khall) <[email protected]> ---
Created attachment 203799
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=203799&action=edit
Bug 42585: Add schema-aware and meta analyzers

This patch adds the last two checks:

* select_star_on_large_payload_table, a wildcard SELECT whose plan
  touches one of Koha's big payload tables such as biblio_metadata or
  action_logs, dragging every row's full payload through the database,
  Plack and the download
* explain_failed, emitted when EXPLAIN itself errored, with the
  trimmed database error in the message

Test Plan:
1) Apply this patch
2) prove t/Koha/Reports/Analyzer/Check/SchemaAware/ \
         t/Koha/Reports/Analyzer/Check/Meta/
3) On an instance with a real sized catalog, analyze a report with the
   SQL "SELECT * FROM biblio_metadata"
4) Note the select_star_on_large_payload_table finding!
5) Analyze a report with the SQL "SELECT no_such_column FROM borrowers"
6) Note the explain_failed finding with the database error in it!

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to