Bugzilla – Attachment 20403 Details for
Bug 10606
MySQLism in GetUpcomingDueIssues
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10606: Remove MySQLism in GetUpcomingDueIssues
Bug-10606-Remove-MySQLism-in-GetUpcomingDueIssues.patch (text/plain), 1.27 KB, created by
Kyle M Hall (khall)
on 2013-08-16 12:35:01 UTC
(
hide
)
Description:
Bug 10606: Remove MySQLism in GetUpcomingDueIssues
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2013-08-16 12:35:01 UTC
Size:
1.27 KB
patch
obsolete
>From 67ec7c040bf2ae07b9071a4771c8d7b6f736121a Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@gmail.com> >Date: Tue, 13 Aug 2013 10:56:15 -0300 >Subject: [PATCH] Bug 10606: Remove MySQLism in GetUpcomingDueIssues > >To test: > >[1] Arrange to have at least one loan in your test database due > one day from now. >[2] Run misc/cronjobs/advance_notices.pl -c -n -v -m=2 > and note the number of loans reported. >[3] Apply the patch. >[4] Run misc/cronjobs/advance_notices.pl -c -n -v -m=2 again > and verify that the number of loans reported remains the same. > >Sponsored-by: Universidad Nacional de Cordoba >Signed-off-by: Galen Charlton <gmc@esilibrary.com> >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > C4/Circulation.pm | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index c578213..ad7cc90 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -2426,7 +2426,8 @@ FROM issues > LEFT JOIN items USING (itemnumber) > LEFT OUTER JOIN branches USING (branchcode) > WHERE returndate is NULL >-HAVING days_until_due > 0 AND days_until_due < ? >+AND (TO_DAYS( date_due )-TO_DAYS( NOW() )) > 0 >+AND (TO_DAYS( date_due )-TO_DAYS( NOW() )) < ? > END_SQL > > my @bind_parameters = ( $params->{'days_in_advance'} ); >-- >1.7.2.5
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 10606
:
20311
|
20333
|
20403
|
20410
|
20422
|
20610
|
35154
|
35332