[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
Wed Oct 19 22:23:38 CEST 2016


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

Josef Moravec <josef.moravec at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #55233|0                           |1
        is obsolete|                            |

--- Comment #8 from Josef Moravec <josef.moravec at gmail.com> ---
Created attachment 56676
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=56676&action=edit
[SIGNED-OFF] 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>

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


More information about the Koha-bugs mailing list