Backport subset of #4179, re-established Oracle compatibility for LDAP
Conflicts: apps/user_ldap/lib/access.php
This commit is contained in:
parent
d5819a5ecd
commit
93edacb357
|
@ -607,7 +607,7 @@ class Access extends LDAPUtility implements user\IUserTools {
|
||||||
|
|
||||||
$sqlAdjustment = '';
|
$sqlAdjustment = '';
|
||||||
$dbType = \OCP\Config::getSystemValue('dbtype');
|
$dbType = \OCP\Config::getSystemValue('dbtype');
|
||||||
if($dbType === 'mysql') {
|
if($dbType === 'mysql' || $dbType == 'oci') {
|
||||||
$sqlAdjustment = 'FROM DUAL';
|
$sqlAdjustment = 'FROM DUAL';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -159,7 +159,8 @@ class Helper {
|
||||||
return false;
|
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);
|
$query = \OCP\DB::prepare('DELETE FROM '.$table);
|
||||||
} else {
|
} else {
|
||||||
$query = \OCP\DB::prepare('TRUNCATE '.$table);
|
$query = \OCP\DB::prepare('TRUNCATE '.$table);
|
||||||
|
|
Loading…
Reference in New Issue