Bugzilla – Attachment 95217 Details for
Bug 24002
Test suite is failing on MySQL 8
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24002: Incorrect DATE value: '0000-00-00' in C4/Serials.pm
Bug-24002-Incorrect-DATE-value-0000-00-00-in-C4Ser.patch (text/plain), 1.74 KB, created by
Jonathan Druart
on 2019-11-08 13:53:23 UTC
(
hide
)
Description:
Bug 24002: Incorrect DATE value: '0000-00-00' in C4/Serials.pm
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2019-11-08 13:53:23 UTC
Size:
1.74 KB
patch
obsolete
>From 674b2de1e9ad7aec2ac80f3035abca120215a66f Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 8 Nov 2019 14:03:37 +0100 >Subject: [PATCH] Bug 24002: Incorrect DATE value: '0000-00-00' in > C4/Serials.pm > >DBD::mysql::st execute failed: Incorrect DATE value: '0000-00-00' [for Statement "SELECT serialid,serialseq, status, planneddate, publisheddate, > publisheddatetext, notes, routingnotes > FROM serial > WHERE subscriptionid = ? > AND status IN ( 2,4,41,42,43,44,5 ) > ORDER BY IF(publisheddate<>'0000-00-00',publisheddate,planneddate) DESC > " with ParamValues: 0=8] at /kohadevbox/koha/C4/Serials.pm line 688. >--- > C4/Serials.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/C4/Serials.pm b/C4/Serials.pm >index 1841397dc4..dc0d841fdf 100644 >--- a/C4/Serials.pm >+++ b/C4/Serials.pm >@@ -660,7 +660,7 @@ sub GetSerials { > publisheddatetext, planneddate,notes, routingnotes > FROM serial > WHERE subscriptionid = ? AND status NOT IN ( $statuses ) >- ORDER BY IF(publisheddate<>'0000-00-00',publisheddate,planneddate) DESC"; >+ ORDER BY IF(publisheddate IS NULL,planneddate,publisheddate) DESC"; > my $sth = $dbh->prepare($query); > $sth->execute($subscriptionid); > >@@ -682,7 +682,7 @@ sub GetSerials { > FROM serial > WHERE subscriptionid = ? > AND status IN ( $statuses ) >- ORDER BY IF(publisheddate<>'0000-00-00',publisheddate,planneddate) DESC >+ ORDER BY IF(publisheddate IS NULL,planneddate,publisheddate) DESC > "; > $sth = $dbh->prepare($query); > $sth->execute($subscriptionid); >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24002
:
95215
|
95216
|
95217
|
95218
|
95219
|
95220
|
95221
|
95222
|
95223
|
95224
|
95225
|
95226
|
95227
|
99118