*/
function open( $server, $user, $password, $dbName ) {
if ( !function_exists( 'oci_connect' ) ) {
- die( "Oracle functions missing, have you compiled PHP with the --with-oci8 option?\n" );
+ wfDie( "Oracle functions missing, have you compiled PHP with the --with-oci8 option?\n" );
}
$this->close();
$this->mServer = $server;
return true;
}
- function startTimer( $timeout )
- {
- global $IP;
- wfDebugDieBacktrace( 'Database::startTimer() error : mysql_thread_id() not implemented for postgre' );
- /*$tid = mysql_thread_id( $this->mConn );
- exec( "php $IP/killthread.php $timeout $tid &>/dev/null &" );*/
- }
-
function tableName($name, $forddl = false) {
# First run any transformations from the parent object
$name = parent::tableName( $name );
# return "TO_TIMESTAMP('" . $this->strencode(wfTimestamp(TS_DB, $ts)) . "', 'RRRR-MM-DD HH24:MI:SS')";
}
- function notNullTimestamp() {
- return "IS NOT NULL";
- }
- function isNullTimestamp() {
- return "IS NULL";
- }
/**
* Return aggregated value function call
*/
function getLag() {
return false;
}
- function getStatus() {
+ function getStatus($which=null) {
$result = array('Threads_running' => 0, 'Threads_connected' => 0);
return $result;
}