r25592 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25591‎ | r25592 | r25593 >
Date:16:32, 6 September 2007
Author:greg
Status:old
Tags:
Comment:
Since slashes in page titles have special meaning, force them to delimit words.
Modified paths:
  • /trunk/phase3/maintenance/postgres/tables.sql (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/postgres/tables.sql
@@ -457,9 +457,9 @@
458458 $mw$
459459 BEGIN
460460 IF TG_OP = 'INSERT' THEN
461 - NEW.titlevector = to_tsvector('default',NEW.page_title);
 461+ NEW.titlevector = to_tsvector('default',REPLACE(NEW.page_title,'/',' '));
462462 ELSIF NEW.page_title != OLD.page_title THEN
463 - NEW.titlevector := to_tsvector('default',NEW.page_title);
 463+ NEW.titlevector := to_tsvector('default',REPLACE(NEW.page_title,'/',' '));
464464 END IF;
465465 RETURN NEW;
466466 END;

Follow-up revisions

RevisionCommit summaryAuthorDate
r25607Merged revisions 25530-25606 via svnmerge from...david06:11, 7 September 2007

Status & tagging log