From 495f0d4b3c818fd3bdba220168d1e4f86e780857 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Wed, 24 Jul 2013 15:08:12 +0200 Subject: [PATCH] LDAP / Oracle compatibility: sql for emptying tables --- apps/user_ldap/lib/helper.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/user_ldap/lib/helper.php b/apps/user_ldap/lib/helper.php index 054371f006f..e5602c5c00b 100644 --- a/apps/user_ldap/lib/helper.php +++ b/apps/user_ldap/lib/helper.php @@ -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); -- 2.39.5