[Koha-bugs] [Bug 24640] quotes.timestamp should default to NULL
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sun Feb 16 20:56:16 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24640
David Nind <david at davidnind.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #98742|0 |1
is obsolete| |
--- Comment #3 from David Nind <david at davidnind.com> ---
Created attachment 99062
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=99062&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
Signed-off-by: David Nind <david at davidnind.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list