$class = $wgSearchType;
} elseif( $wgDBtype == 'mysql' ) {
$class = 'SearchMySQL4';
- } else if ( $wgDBtype == 'PostgreSQL' ) {
+ } else if ( $wgDBtype == 'postgres' ) {
$class = 'SearchTsearch2';
} else {
$class = 'SearchEngineDummy';
# 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',
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 = '';