From 58bff0230af970775020b5647e9ce343f89ed1cd Mon Sep 17 00:00:00 2001 From: Brent Garber Date: Thu, 3 Jan 2013 23:05:17 +0000 Subject: [PATCH] Fix changes for Ia1878588 to work with databases that use non-integer timestamps. Change-Id: Id51ab135baa35440005b38f2f2f466f4378deb31 --- includes/actions/InfoAction.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/actions/InfoAction.php b/includes/actions/InfoAction.php index 642515b1db..dedc61f29e 100644 --- a/includes/actions/InfoAction.php +++ b/includes/actions/InfoAction.php @@ -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__ ); -- 2.20.1