From: Greg Sabino Mullane Date: Sun, 9 Sep 2007 18:31:21 +0000 (+0000) Subject: Don't pass getTimestamp output directly to the db without a wrap. X-Git-Tag: 1.31.0-rc.0~51463 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=66f12e7209958e8e4c878beb5a8324b4f6df5e88;p=lhc%2Fweb%2Fwiklou.git Don't pass getTimestamp output directly to the db without a wrap. --- diff --git a/includes/DifferenceEngine.php b/includes/DifferenceEngine.php index e88234269c..e0647ee136 100644 --- a/includes/DifferenceEngine.php +++ b/includes/DifferenceEngine.php @@ -166,11 +166,12 @@ CONTROL; $rcid = $this->mRcidMarkPatrolled; } else { // Look for an unpatrolled change corresponding to this diff + $db = wfGetDB( DB_SLAVE ); $change = RecentChange::newFromConds( array( // Add redundant timestamp condition so we can use the // existing index - 'rc_timestamp' => $this->mNewRev->getTimestamp(), + 'rc_timestamp' => $db->timestamp( $this->mNewRev->getTimestamp() ), 'rc_this_oldid' => $this->mNewid, 'rc_last_oldid' => $this->mOldid, 'rc_patrolled' => 0,