From 1c91daa8ab3fff6f54cd196ca4894d12b2141129 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Fri, 2 Aug 2013 13:06:35 +0200 Subject: [PATCH] convert 0000-00-00 00:00:00 to CURRENT_TIMESTAMP when setting up db on oracle --- lib/db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/db.php b/lib/db.php index 4e4de888e4a..cc4ca804144 100644 --- a/lib/db.php +++ b/lib/db.php @@ -536,7 +536,7 @@ class OC_DB { * http://www.sqlite.org/lang_createtable.html * http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions037.htm */ - if( $CONFIG_DBTYPE == 'pgsql' ) { //mysql support it too but sqlite doesn't + if( $CONFIG_DBTYPE === 'pgsql' || $CONFIG_DBTYPE === 'oci' ) { //mysql support it too but sqlite doesn't $content = str_replace( '0000-00-00 00:00:00', 'CURRENT_TIMESTAMP', $content ); } -- 2.39.5