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
return false;
}
- public function unixTimestamp( $field ) {
- return "DATEDIFF(s,CONVERT(datetime,'1/1/1970'),$field)";
- }
-
/**
* Begin a transaction, committing any previously open transaction
*/
$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
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';
}
return implode( $glue, $sqls );
}
- public function unixTimestamp( $field ) {
- return $field;
- }
-
function wasDeadlock() {
return $this->lastErrno() == 5; // SQLITE_BUSY
}