diff options
-rw-r--r-- | lib/db.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/db.php b/lib/db.php index 859ca02c445..10e38a6374e 100644 --- a/lib/db.php +++ b/lib/db.php @@ -768,6 +768,7 @@ class OC_DB { }elseif( $type == 'oci' ) { $query = str_replace( '`', '"', $query ); $query = str_ireplace( 'NOW()', 'CURRENT_TIMESTAMP', $query ); + $query = str_ireplace( 'UNIX_TIMESTAMP()', '((CAST(SYS_EXTRACT_UTC(systimestamp) AS DATE))-TO_DATE(\'1970101000000\',\'YYYYMMDDHH24MiSS\'))*24*3600', $query ); }elseif( $type == 'mssql' ) { $query = preg_replace( "/\`(.*?)`/", "[$1]", $query ); $query = str_replace( 'NOW()', 'CURRENT_TIMESTAMP', $query ); |