Bugzilla – Attachment 8953 Details for
Bug 7802
A MySQLism is used to get the current date.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7802: Followup Remove CUR_DATE() and CURRENT_DATE() MySQLisms, replace by CAST(now() AS date)
0002-Bug-7802-Followup-Remove-CUR_DATE-and-CURRENT_DATE-M.patch (text/plain), 889 bytes, created by
Jonathan Druart
on 2012-04-06 13:02:41 UTC
(
hide
)
Description:
Bug 7802: Followup Remove CUR_DATE() and CURRENT_DATE() MySQLisms, replace by CAST(now() AS date)
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2012-04-06 13:02:41 UTC
Size:
889 bytes
patch
obsolete
>From 101ae61c8ffdae643e84949d82e70200b56309ff Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Fri, 6 Apr 2012 14:58:19 +0200 >Subject: [PATCH 2/2] Bug 7802: Followup Remove CUR_DATE() and CURRENT_DATE() > MySQLisms, replace by CAST(now() AS date). > >--- > C4/Reserves.pm | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/C4/Reserves.pm b/C4/Reserves.pm >index 3358601..07edcff 100644 >--- a/C4/Reserves.pm >+++ b/C4/Reserves.pm >@@ -912,7 +912,7 @@ sub AutoUnsuspendReserves { > > my $dbh = C4::Context->dbh; > >- my $query = "UPDATE reserves SET suspend = 0, suspend_until = NULL WHERE DATE( suspend_until ) < DATE( CURDATE() )"; >+ my $query = "UPDATE reserves SET suspend = 0, suspend_until = NULL WHERE DATE( suspend_until ) < CAST(now() AS date)"; > my $sth = $dbh->prepare( $query ); > $sth->execute(); > >-- >1.7.7.3 >
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 7802
:
8526
|
8616
|
8901
|
8952
|
8953
|
19643
|
19644
|
20057
|
20058
|
20733
|
22755
|
22756
|
22760
|
22761
|
22816
|
22817