Fix changes for Ia1878588 to work with databases that use non-integer timestamps.
authorBrent Garber <overlordq@gmail.com>
Thu, 3 Jan 2013 23:05:17 +0000 (23:05 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sun, 20 Jan 2013 21:25:31 +0000 (21:25 +0000)
Change-Id: Id51ab135baa35440005b38f2f2f466f4378deb31

includes/actions/InfoAction.php

index 642515b..dedc61f 100644 (file)
@@ -601,8 +601,8 @@ class InfoAction extends FormlessAction {
                        'revision',
                        'COUNT(rev_page)',
                        array(
-                               'rev_page' => $id ,
-                               "rev_timestamp >= $threshold"
+                               'rev_page' => $id,
+                               "rev_timestamp >= " . $dbr->addQuotes( $threshold )
                        ),
                        __METHOD__
                );
@@ -614,7 +614,7 @@ class InfoAction extends FormlessAction {
                        'COUNT(DISTINCT rev_user_text)',
                        array(
                                'rev_page' => $id,
-                               "rev_timestamp >= $threshold"
+                               "rev_timestamp >= " . $dbr->addQuotes( $threshold )
                        ),
                        __METHOD__
                );