Standardize name to simply "postgres"
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Tue, 27 Jun 2006 15:08:08 +0000 (15:08 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Tue, 27 Jun 2006 15:08:08 +0000 (15:08 +0000)
includes/SearchEngine.php
includes/SpecialUndelete.php
maintenance/parserTests.inc

index ae44e20..76668cb 100644 (file)
@@ -195,7 +195,7 @@ class SearchEngine {
                        $class = $wgSearchType;
                } elseif( $wgDBtype == 'mysql' ) {
                        $class = 'SearchMySQL4';
-               } else if ( $wgDBtype == 'PostgreSQL' ) {
+               } else if ( $wgDBtype == 'postgres' ) {
                        $class = 'SearchTsearch2';
                } else {
                        $class = 'SearchEngineDummy';
index f64634f..8937983 100644 (file)
@@ -260,7 +260,7 @@ class PageArchive {
 
                # Does this page already exist? We'll have to update it...
                $article = new Article( $this->title );
-               $options = ( $wgDBtype == 'PostgreSQL' )
+               $options = ( $wgDBtype == 'postgres' )
                        ? '' // pg doesn't support this?
                        : 'FOR UPDATE';
                $page = $dbw->selectRow( 'page',
index ec6e044..3e1b2fd 100644 (file)
@@ -414,7 +414,7 @@ class ParserTest {
                        if (!(strcmp($db->getServerVersion(), '4.1') < 0 and stristr($db->getSoftwareLink(), 'MySQL'))) {
                                # Database that supports CREATE TABLE ... LIKE
                                global $wgDBtype;
-                               if( $wgDBtype == 'PostgreSQL' ) {
+                               if( $wgDBtype == 'postgres' ) {
                                        $def = 'INCLUDING DEFAULTS';
                                } else {
                                        $def = '';