[Koha-bugs] [Bug 17257] Cannot create a patron under MySQL 5.7
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17257 --- Comment #14 from Mason James--- Pushed to 16.05.x, for 16.05.13 release -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17257] Cannot create a patron under MySQL 5.7
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17257 Mason Jameschanged: What|Removed |Added CC||m...@kohaaloha.com -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17257] Cannot create a patron under MySQL 5.7
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17257 --- Comment #13 from Julian Maurice--- Pushed to 3.22.x for 3.22.21 -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17257] Cannot create a patron under MySQL 5.7
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17257 Katrin Fischerchanged: What|Removed |Added Status|Pushed to Master|Pushed to Stable CC||katrin.fisc...@bsz-bw.de --- Comment #12 from Katrin Fischer --- This patch has been pushed to 16.11.x and will be in 16.11.08. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17257] Cannot create a patron under MySQL 5.7
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17257 Kyle M Hallchanged: What|Removed |Added Status|Passed QA |Pushed to Master --- Comment #11 from Kyle M Hall --- Pushed to master for 17.05, thanks Jonathan! -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17257] Cannot create a patron under MySQL 5.7
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17257 Kyle M Hallchanged: What|Removed |Added CC||k...@bywatersolutions.com Attachment #61425|0 |1 is obsolete|| -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17257] Cannot create a patron under MySQL 5.7
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17257 --- Comment #10 from Julian Maurice--- Created attachment 63382 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=63382=edit Bug 17257: Fix add/edit patrons under MySQL 5.7 If no guarantor is defined the patron won't be added/modified and an error will be raised: DBD::mysql::st execute failed: Incorrect integer value: '' for column 'guarantorid' Test plan: Using MySQL 5.7 (and/or sql_mode=STRICT_TRANS_TABLES) Create a patron without guarantor Signed-off-by: Srdjan Tested with MariaDB 10.0.30 (sql_mode='STRICT_TRANS_TABLES') Signed-off-by: Julian Maurice -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17257] Cannot create a patron under MySQL 5.7
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17257 Julian Mauricechanged: What|Removed |Added CC||julian.maur...@biblibre.com Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17257] Cannot create a patron under MySQL 5.7
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17257 --- Comment #9 from Jonathan Druart--- Thanks for volunteering :) -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17257] Cannot create a patron under MySQL 5.7
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17257 --- Comment #8 from Srdjan Jankovic--- (In reply to Jonathan Druart from comment #6) > As I said, I just mimic what existed before. > The plan is to move C4::Members::AddMember to Koha::Patron, of course. But > that patch is just supposed to be a bugfix. I understand. In that light I think it would be better to fix it in Koha::Patron rather than adding more code to a legacy module. Especially when you can add it elegantly to Patron::new(), bonus moving similar lines too - a micro-refactoring that will make moving AddMember to Patroms easier. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17257] Cannot create a patron under MySQL 5.7
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17257 Srdjan Jankovicchanged: What|Removed |Added Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17257] Cannot create a patron under MySQL 5.7
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17257 Srdjan Jankovicchanged: What|Removed |Added Attachment #55231|0 |1 is obsolete|| --- Comment #7 from Srdjan Jankovic --- Created attachment 61425 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61425=edit [SIGNED-OFF] Bug 17257: Fix add/edit patrons under MySQL 5.7 If no guarantor is defined the patron won't be added/modified and an error will be raised: DBD::mysql::st execute failed: Incorrect integer value: '' for column 'guarantorid' Test plan: Using MySQL 5.7 (and/or sql_mode=STRICT_TRANS_TABLES) Create a patron without guarantor Signed-off-by: Srdjan -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17257] Cannot create a patron under MySQL 5.7
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17257 --- Comment #6 from Jonathan Druart--- (In reply to Srdjan Jankovic from comment #5) > (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 just mimic what existed before. > > 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. As I said, I just mimic what existed before. The plan is to move C4::Members::AddMember to Koha::Patron, of course. But that patch is just supposed to be a bugfix. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17257] Cannot create a patron under MySQL 5.7
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17257 --- Comment #5 from Srdjan Jankovic--- (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. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17257] Cannot create a patron under MySQL 5.7
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17257 --- Comment #4 from Jonathan Druart--- (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. > Anyway, if it is a problem, I think Koha::Patron is the place to solve it. I do not understand, we are not using Koha::Patron here. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17257] Cannot create a patron under MySQL 5.7
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17257 Srdjan Jankovicchanged: What|Removed |Added CC||srd...@catalyst.net.nz --- Comment #3 from Srdjan Jankovic --- I don't have mysql (running mariadb), and wondering how come DBIx::Class did not solve it? Anyway, if it is a problem, I think Koha::Patron is the place to solve it. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17257] Cannot create a patron under MySQL 5.7
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17257 Jonathan Druartchanged: What|Removed |Added CC||hblanc...@gmail.com --- Comment #2 from Jonathan Druart --- *** Bug 16094 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17257] Cannot create a patron under MySQL 5.7
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17257 --- Comment #1 from Jonathan Druart--- Created attachment 55231 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=55231=edit Bug 17257: Fix add/edit patrons under MySQL 5.7 If no guarantor is defined the patron won't be added/modified and an error will be raised: DBD::mysql::st execute failed: Incorrect integer value: '' for column 'guarantorid' Test plan: Using MySQL 5.7 (and/or sql_mode=STRICT_TRANS_TABLES) Create a patron without guarantor -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17257] Cannot create a patron under MySQL 5.7
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17257 Jonathan Druartchanged: What|Removed |Added Status|ASSIGNED|Needs Signoff -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17257] Cannot create a patron under MySQL 5.7
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17257 Jonathan Druartchanged: What|Removed |Added Blocks||17258 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17258 [Bug 17258] [OMIBUS] MySQL 5.7 -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/