[Koha-bugs] [Bug 17257] Cannot create a patron under MySQL 5.7

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 22 01:39:53 CET 2017


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

--- Comment #5 from Srdjan Jankovic <srdjan at catalyst.net.nz> ---
(In reply to Jonathan Druart from comment #4)
> (In reply to Srdjan Jankovic from comment #3)
> > I don't have mysql (running mariadb), and wondering how come DBIx::Class did
> > not solve it?
> 
> If the key exists, the default value defined at DB level is not used.

Ah I see. Then maybe

delete $data{'dateofbirth'} if exists($data{'dateofbirth') &&
!$data{'dateofbirth'};

would make intention clearer.

> I do not understand, we are not using Koha::Patron here.

A couple of lines later:

my $patron = Koha::Patron->new( $new_member )->store;

Considering the line number mismatch, I'd say base for this patch is lagging a
bit.

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


More information about the Koha-bugs mailing list