Followup r92081: SQL fix for cleanupUploadStash.php on PostgreSQL (bug 32822)
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 6 Dec 2011 18:15:28 +0000 (18:15 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 6 Dec 2011 18:15:28 +0000 (18:15 +0000)
maintenance/cleanupUploadStash.php

index f258cab..788f0f5 100644 (file)
@@ -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__
                );