r38184 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r38183‎ | r38184 | r38185 >
Date:14:14, 29 July 2008
Author:greg
Status:old
Tags:
Comment:
Double-check that all old revision are set null.
Modified paths:
  • /trunk/phase3/includes/SearchPostgres.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SearchPostgres.php
@@ -201,9 +201,9 @@
202202
203203 function update( $pageid, $title, $text ) {
204204 ## We don't want to index older revisions
205 - $SQL = "UPDATE pagecontent SET textvector = NULL WHERE old_id = ".
 205+ $SQL = "UPDATE pagecontent SET textvector = NULL WHERE old_id IN ".
206206 "(SELECT rev_text_id FROM revision WHERE rev_page = $pageid ".
207 - "ORDER BY rev_text_id DESC LIMIT 1 OFFSET 1)";
 207+ "ORDER BY rev_text_id DESC OFFSET 1)";
208208 $this->db->doQuery($SQL);
209209 return true;
210210 }

Status & tagging log