Remove now-unused SQL timestamp conversion functions added in r77231. They were made obsolete by the querypage-work2 branch merge in r78786
This commit is contained in:
parent
d9d54a4116
commit
475c331f60
5 changed files with 0 additions and 25 deletions
|
|
@ -2044,16 +2044,6 @@ abstract class DatabaseBase implements DatabaseType {
|
|||
return "REPLACE({$orig}, {$old}, {$new})";
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert a field to an unix timestamp
|
||||
*
|
||||
* @param $field String: field name
|
||||
* @return String: SQL statement
|
||||
*/
|
||||
public function unixTimestamp( $field ) {
|
||||
return "EXTRACT(epoch FROM $field)";
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines if the last failure was due to a deadlock
|
||||
* STUB
|
||||
|
|
|
|||
|
|
@ -787,10 +787,6 @@ class DatabaseMssql extends DatabaseBase {
|
|||
return false;
|
||||
}
|
||||
|
||||
public function unixTimestamp( $field ) {
|
||||
return "DATEDIFF(s,CONVERT(datetime,'1/1/1970'),$field)";
|
||||
}
|
||||
|
||||
/**
|
||||
* Begin a transaction, committing any previously open transaction
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -478,9 +478,6 @@ class DatabaseMysql extends DatabaseBase {
|
|||
$this->query( "SET sql_big_selects=$encValue", __METHOD__ );
|
||||
}
|
||||
|
||||
public function unixTimestamp( $field ) {
|
||||
return "UNIX_TIMESTAMP($field)";
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines if the last failure was due to a deadlock
|
||||
|
|
|
|||
|
|
@ -839,10 +839,6 @@ class DatabaseOracle extends DatabaseBase {
|
|||
return 'SELECT * ' . ( $all ? '':'/* UNION_UNIQUE */ ' ) . 'FROM (' . implode( $glue, $sqls ) . ')' ;
|
||||
}
|
||||
|
||||
public function unixTimestamp( $field ) {
|
||||
return "((trunc($field) - to_date('19700101','YYYYMMDD')) * 86400)";
|
||||
}
|
||||
|
||||
function wasDeadlock() {
|
||||
return $this->lastErrno() == 'OCI-00060';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -431,10 +431,6 @@ class DatabaseSqlite extends DatabaseBase {
|
|||
return implode( $glue, $sqls );
|
||||
}
|
||||
|
||||
public function unixTimestamp( $field ) {
|
||||
return $field;
|
||||
}
|
||||
|
||||
function wasDeadlock() {
|
||||
return $this->lastErrno() == 5; // SQLITE_BUSY
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue