]> source.dussan.org Git - nextcloud-server.git/commitdiff
LDAP / Oracle compatibility: sql for emptying tables
authorArthur Schiwon <blizzz@owncloud.com>
Wed, 24 Jul 2013 13:08:12 +0000 (15:08 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Wed, 24 Jul 2013 13:08:12 +0000 (15:08 +0200)
apps/user_ldap/lib/helper.php

index 054371f006fb6905655b2bdf7a5d95a7e546b9f0..e5602c5c00b51f12e6c93ebefeae89f3c5e93853 100644 (file)
@@ -123,7 +123,9 @@ class Helper {
                        return false;
                }
 
-               if(strpos(\OCP\Config::getSystemValue('dbtype'), 'sqlite') !== false) {
+               $dbtype = \OCP\Config::getSystemValue('dbtype');
+               if(strpos($dbtype, 'sqlite') !== false
+                       || $dbtype === 'oci') {
                        $query = \OCP\DB::prepare('DELETE FROM '.$table);
                } else {
                        $query = \OCP\DB::prepare('TRUNCATE '.$table);