From b9a642673ac5fc35a24f8d4076bf18930c31748b Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Tue, 27 Jun 2006 15:08:08 +0000 Subject: [PATCH] Standardize name to simply "postgres" --- includes/SearchEngine.php | 2 +- includes/SpecialUndelete.php | 2 +- maintenance/parserTests.inc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/SearchEngine.php b/includes/SearchEngine.php index ae44e20a6a..76668cbd77 100644 --- a/includes/SearchEngine.php +++ b/includes/SearchEngine.php @@ -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'; diff --git a/includes/SpecialUndelete.php b/includes/SpecialUndelete.php index f64634fd34..893798357e 100644 --- a/includes/SpecialUndelete.php +++ b/includes/SpecialUndelete.php @@ -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', diff --git a/maintenance/parserTests.inc b/maintenance/parserTests.inc index ec6e044a99..3e1b2fd489 100644 --- a/maintenance/parserTests.inc +++ b/maintenance/parserTests.inc @@ -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 = ''; -- 2.20.1