[Koha-bugs] [Bug 27511] New: Don't use NOW() in saved sql last run update
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Jan 21 17:00:19 CET 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27511
Bug ID: 27511
Summary: Don't use NOW() in saved sql last run update
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P5 - low
Component: Reports
Assignee: koha-bugs at lists.koha-community.org
Reporter: fridolin.somers at biblibre.com
QA Contact: testopia at bugs.koha-community.org
When running a report, column last run is updated with current date-time.
We should avoid using NOW(), better calculated date-time in perl.
With NOW(), when importing a backup dump, you get current date-time in all
rows.
Also, sometimes we see errors in plack logs :
DBD::mysql::db do failed: Lock wait timeout exceeded; try restarting
transaction [for Statement "UPDATE saved_sql SET last_run = NOW() WHERE id =
?"] at /home
/koha/src/C4/Reports/Guided.pm line 576.
Replacing NOW() should avoid this.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list