*/
abstract function getSoftwareLink();
- /**
- * Returns the database type for user-visible purposes
- * e.g. DB error messages
- * Other uses should just use $wgDBtype
- *
- * @return String: Database type for use in messages
- */
- abstract function getDBtypeForMsg();
-
/**
* A string describing the current software version, like from
* mysql_get_server_info(). Will be listed on Special:Version, etc.
function getText() {
if ( $this->useMessageCache() ) {
return wfMsg( 'dberrortextcl', htmlspecialchars( $this->getSQL() ),
- htmlspecialchars( $this->fname ), $this->errno, htmlspecialchars( $this->error ),
- htmlspecialchars( $this->db->getDBtypeForMsg() ) ) . "\n";
+ htmlspecialchars( $this->fname ), $this->errno, htmlspecialchars( $this->error ) ) . "\n";
} else {
return $this->getMessage();
}
function getHTML() {
if ( $this->useMessageCache() ) {
return wfMsgNoDB( 'dberrortext', htmlspecialchars( $this->getSQL() ),
- htmlspecialchars( $this->fname ), $this->errno, htmlspecialchars( $this->error ),
- htmlspecialchars( $this->db->getDBtypeForMsg() ) );
+ htmlspecialchars( $this->fname ), $this->errno, htmlspecialchars( $this->error ) );
} else {
return nl2br( htmlspecialchars( $this->getMessage() ) );
}
return "[http://www.ibm.com/software/data/db2/express/?s_cmp=ECDDWW01&s_tact=MediaWiki IBM DB2]";
}
- /**
- * @return String: Database type for use in messages
- */
- function getDBtypeForMsg() {
- return 'IBM DB2';
- }
-
/**
* Get search engine class. All subclasses of this
* need to implement this if they wish to use searching.
return "[http://www.microsoft.com/sql/default.mspx Microsoft SQL Server 2005 Home]";
}
- /**
- * @return String: Database type for use in messages
- */
- function getDBtypeForMsg() {
- return 'Microsoft SQL Server';
- }
-
/**
* @return string Version information from the database
*/
return false;
}
- /**
- * @return String: Database type for use in messages
- */
- function getDBtypeForMsg() {
- return 'MySQL';
- }
-
public function setTimeout( $timeout ) {
$this->query( "SET net_read_timeout=$timeout" );
$this->query( "SET net_write_timeout=$timeout" );
return "[http://www.oracle.com/ Oracle]";
}
- /**
- * @return String: Database type for use in messages
- */
- function getDBtypeForMsg() {
- return 'Oracle';
- }
-
/**
* @return string Version information from the database
*/
return "[http://www.postgresql.org/ PostgreSQL]";
}
- /**
- * @return String: Database type for use in messages
- */
- function getDBtypeForMsg() {
- return 'PostgreSQL';
- }
-
/**
* @return string Version information from the database
*/
return "[http://sqlite.org/ SQLite]";
}
- /**
- * @return String: Database type for use in messages
- */
- function getDBtypeForMsg() {
- return 'SQLite';
- }
-
/**
* @return string Version information from the database
*/
The last attempted database query was:
<blockquote><tt>$1</tt></blockquote>
from within function "<tt>$2</tt>".
-$5 returned error "<tt>$3: $4</tt>".',
+Database returned error "<tt>$3: $4</tt>".',
'dberrortextcl' => 'A database query syntax error has occurred.
The last attempted database query was:
"$1"
from within function "$2".
-$5 returned error "$3: $4"',
+Database returned error "$3: $4"',
'laggedslavemode' => "'''Warning:''' Page may not contain recent updates.",
'readonly' => 'Database locked',
'enterlockreason' => 'Enter a reason for the lock, including an estimate of when the lock will be released',