Index: trunk/phase3/includes/db/DatabaseMysql.php |
— | — | @@ -478,9 +478,6 @@ |
479 | 479 | $this->query( "SET sql_big_selects=$encValue", __METHOD__ ); |
480 | 480 | } |
481 | 481 | |
482 | | - public function unixTimestamp( $field ) { |
483 | | - return "UNIX_TIMESTAMP($field)"; |
484 | | - } |
485 | 482 | |
486 | 483 | /** |
487 | 484 | * Determines if the last failure was due to a deadlock |
Index: trunk/phase3/includes/db/DatabaseOracle.php |
— | — | @@ -839,10 +839,6 @@ |
840 | 840 | return 'SELECT * ' . ( $all ? '':'/* UNION_UNIQUE */ ' ) . 'FROM (' . implode( $glue, $sqls ) . ')' ; |
841 | 841 | } |
842 | 842 | |
843 | | - public function unixTimestamp( $field ) { |
844 | | - return "((trunc($field) - to_date('19700101','YYYYMMDD')) * 86400)"; |
845 | | - } |
846 | | - |
847 | 843 | function wasDeadlock() { |
848 | 844 | return $this->lastErrno() == 'OCI-00060'; |
849 | 845 | } |
Index: trunk/phase3/includes/db/Database.php |
— | — | @@ -2045,16 +2045,6 @@ |
2046 | 2046 | } |
2047 | 2047 | |
2048 | 2048 | /** |
2049 | | - * Convert a field to an unix timestamp |
2050 | | - * |
2051 | | - * @param $field String: field name |
2052 | | - * @return String: SQL statement |
2053 | | - */ |
2054 | | - public function unixTimestamp( $field ) { |
2055 | | - return "EXTRACT(epoch FROM $field)"; |
2056 | | - } |
2057 | | - |
2058 | | - /** |
2059 | 2049 | * Determines if the last failure was due to a deadlock |
2060 | 2050 | * STUB |
2061 | 2051 | */ |
Index: trunk/phase3/includes/db/DatabaseMssql.php |
— | — | @@ -787,10 +787,6 @@ |
788 | 788 | return false; |
789 | 789 | } |
790 | 790 | |
791 | | - public function unixTimestamp( $field ) { |
792 | | - return "DATEDIFF(s,CONVERT(datetime,'1/1/1970'),$field)"; |
793 | | - } |
794 | | - |
795 | 791 | /** |
796 | 792 | * Begin a transaction, committing any previously open transaction |
797 | 793 | */ |
Index: trunk/phase3/includes/db/DatabaseSqlite.php |
— | — | @@ -431,10 +431,6 @@ |
432 | 432 | return implode( $glue, $sqls ); |
433 | 433 | } |
434 | 434 | |
435 | | - public function unixTimestamp( $field ) { |
436 | | - return $field; |
437 | | - } |
438 | | - |
439 | 435 | function wasDeadlock() { |
440 | 436 | return $this->lastErrno() == 5; // SQLITE_BUSY |
441 | 437 | } |