From: Brion Vibber Date: Tue, 6 Dec 2011 18:15:28 +0000 (+0000) Subject: Followup r92081: SQL fix for cleanupUploadStash.php on PostgreSQL (bug 32822) X-Git-Tag: 1.31.0-rc.0~26156 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dcompta/operations/modifier.php?a=commitdiff_plain;h=7e0e1d7d4aa3143929e6e33d69e899c6b9d2f36c;p=lhc%2Fweb%2Fwiklou.git Followup r92081: SQL fix for cleanupUploadStash.php on PostgreSQL (bug 32822) --- diff --git a/maintenance/cleanupUploadStash.php b/maintenance/cleanupUploadStash.php index f258cab370..788f0f59a5 100644 --- a/maintenance/cleanupUploadStash.php +++ b/maintenance/cleanupUploadStash.php @@ -46,7 +46,7 @@ class UploadStashCleanup extends Maintenance { $res = $dbr->select( 'uploadstash', 'us_key', - 'us_timestamp < ' . $dbr->timestamp( time() - $wgUploadStashMaxAge ), + 'us_timestamp < ' . $dbr->addQuotes( $dbr->timestamp( time() - $wgUploadStashMaxAge ) ), __METHOD__ );