[Koha-bugs] [Bug 14637] Add patron category fails with MySQL 5.6.26

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Dec 23 14:36:34 CET 2016


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

--- Comment #15 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 58417
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58417&action=edit
Bug 14637: Fix add patron category under MySQL 5.7

If no dateofbirthrequired or upperagelimit is set on the interface, the
->store method will receive an empty string defined for these values.
For INT field, we must explicitely set these empty value to undef
instead to avoid MySQL 5.7 (and strict mode) to raise:
  DBD::mysql::st execute failed: Incorrect integer value: ' for column
'dateofbirthrequired''

Test plan:
Using MySQL 5.7 (and/or sql_mode=STRICT_TRANS_TABLES)
Create a patron category without specifying upperagelimit or
dateofbirthrequired

Signed-off-by: Josef Moravec <josef.moravec at gmail.com>

Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>

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


More information about the Koha-bugs mailing list