r15091 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r15090‎ | r15091 | r15092 >
Date:15:08, 27 June 2006
Author:greg
Status:old
Tags:
Comment:
Standardize name to simply "postgres"
Modified paths:
  • /trunk/phase3/includes/SearchEngine.php (modified) (history)
  • /trunk/phase3/includes/SpecialUndelete.php (modified) (history)
  • /trunk/phase3/maintenance/parserTests.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/parserTests.inc
@@ -414,7 +414,7 @@
415415 if (!(strcmp($db->getServerVersion(), '4.1') < 0 and stristr($db->getSoftwareLink(), 'MySQL'))) {
416416 # Database that supports CREATE TABLE ... LIKE
417417 global $wgDBtype;
418 - if( $wgDBtype == 'PostgreSQL' ) {
 418+ if( $wgDBtype == 'postgres' ) {
419419 $def = 'INCLUDING DEFAULTS';
420420 } else {
421421 $def = '';
Index: trunk/phase3/includes/SearchEngine.php
@@ -195,7 +195,7 @@
196196 $class = $wgSearchType;
197197 } elseif( $wgDBtype == 'mysql' ) {
198198 $class = 'SearchMySQL4';
199 - } else if ( $wgDBtype == 'PostgreSQL' ) {
 199+ } else if ( $wgDBtype == 'postgres' ) {
200200 $class = 'SearchTsearch2';
201201 } else {
202202 $class = 'SearchEngineDummy';
Index: trunk/phase3/includes/SpecialUndelete.php
@@ -260,7 +260,7 @@
261261
262262 # Does this page already exist? We'll have to update it...
263263 $article = new Article( $this->title );
264 - $options = ( $wgDBtype == 'PostgreSQL' )
 264+ $options = ( $wgDBtype == 'postgres' )
265265 ? '' // pg doesn't support this?
266266 : 'FOR UPDATE';
267267 $page = $dbw->selectRow( 'page',