Bugzilla – Attachment 43695 Details for
Bug 13409
Add ability to purge old special holidays using cleanup_database.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13409: Remove MySQLism - Replace DATE with CAST AS DATE
Bug-13409-Remove-MySQLism---Replace-DATE-with-CAST.patch (text/plain), 958 bytes, created by
Jonathan Druart
on 2015-10-21 13:32:08 UTC
(
hide
)
Description:
Bug 13409: Remove MySQLism - Replace DATE with CAST AS DATE
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-10-21 13:32:08 UTC
Size:
958 bytes
patch
obsolete
>From fffd077a680acba1f4e54b7464850d8a2dc6cfc4 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 21 Oct 2015 14:31:08 +0100 >Subject: [PATCH] Bug 13409: Remove MySQLism - Replace DATE with CAST AS DATE > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > misc/cronjobs/cleanup_database.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/misc/cronjobs/cleanup_database.pl b/misc/cronjobs/cleanup_database.pl >index cb56d5a..55224b2 100755 >--- a/misc/cronjobs/cleanup_database.pl >+++ b/misc/cronjobs/cleanup_database.pl >@@ -399,7 +399,7 @@ sub PurgeHolidays { > $sth = $dbh->prepare( > q{ > DELETE FROM special_holidays >- WHERE DATE( CONCAT( year, '-', month, '-', day ) ) < ? >+ WHERE CAST( CONCAT( year, '-', month, '-', day ) AS DATE ) < ? > } > ); > $sth->execute( $date->ymd ) or die $dbh->errstr; >-- >2.1.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 13409
:
34177
|
43588
|
43608
|
43609
|
43693
|
43694
| 43695