[Koha-bugs] [Bug 24640] quotes.timestamp should default to current_timestamp

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Feb 12 12:28:18 CET 2020


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

--- Comment #2 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 98742
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=98742&action=edit
Bug 24640: Allow quotes.timestamp to be NULL

It is broken with strict mode enable, timestamp is created without
default value.

Note that the .sql installer file init the value with NOW(), which is
wrong.

DBD::mysql::st execute failed: Field 'timestamp' doesn't have a default
value [for Statement "INSERT INTO quotes (source, text) VALUES (?, ?);"
with ParamValues: 0="poeut", 1="pouet"] at
/kohadevbox/koha/tools/quotes/quotes_ajax.pl line 49.

Test plan:
Create a new quote of the day
=> Without this patch you will get an error

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list