Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2022-02-11 01:13:06 +0300
committerArthur Schiwon <blizzz@arthur-schiwon.de>2022-02-15 15:23:25 +0300
commitc14dda9b447ab43f13ab1bc8c165805127f92064 (patch)
tree8708c800f8b378191df7d53b54a4bb381cf6fdfc /apps
parent6368c68a57ec0ed97eae91d50a66833876738379 (diff)
fix use of executeQuery and -Statement
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps')
-rw-r--r--apps/user_ldap/lib/Mapping/AbstractMapping.php2
-rw-r--r--apps/user_ldap/lib/Migration/Version1130Date20211102154716.php6
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/user_ldap/lib/Mapping/AbstractMapping.php b/apps/user_ldap/lib/Mapping/AbstractMapping.php
index ddb30d7649e..761a0a607a5 100644
--- a/apps/user_ldap/lib/Mapping/AbstractMapping.php
+++ b/apps/user_ldap/lib/Mapping/AbstractMapping.php
@@ -331,7 +331,7 @@ abstract class AbstractMapping {
$select->where($select->expr()->like('directory_uuid', $select->createNamedParameter('invalidated_%')));
}
- $result = $select->executeQuery();
+ $result = $select->execute();
$entries = $result->fetchAll();
$result->closeCursor();
diff --git a/apps/user_ldap/lib/Migration/Version1130Date20211102154716.php b/apps/user_ldap/lib/Migration/Version1130Date20211102154716.php
index 82afe1d725d..8af85880c8e 100644
--- a/apps/user_ldap/lib/Migration/Version1130Date20211102154716.php
+++ b/apps/user_ldap/lib/Migration/Version1130Date20211102154716.php
@@ -215,7 +215,7 @@ class Version1130Date20211102154716 extends SimpleMigrationStep {
$update->setParameter('nextcloudId', $nextcloudId);
$update->setParameter('invalidatedUuid', 'invalidated_' . \bin2hex(\random_bytes(6)));
try {
- $update->executeStatement();
+ $update->execute();
$this->logger->warning(
'LDAP user or group with ID {nid} has a duplicated UUID value which therefore was invalidated. You may double-check your LDAP configuration and trigger an update of the UUID.',
[
@@ -246,7 +246,7 @@ class Version1130Date20211102154716 extends SimpleMigrationStep {
->from($table)
->where($select->expr()->eq('directory_uuid', $select->createNamedParameter($uuid)));
- $result = $select->executeQuery();
+ $result = $select->execute();
$idList = [];
while ($id = $result->fetchOne()) {
$idList[] = $id;
@@ -266,7 +266,7 @@ class Version1130Date20211102154716 extends SimpleMigrationStep {
->groupBy('directory_uuid')
->having($select->expr()->gt($select->func()->count('owncloud_name'), $select->createNamedParameter(1)));
- $result = $select->executeQuery();
+ $result = $select->execute();
while ($uuid = $result->fetchOne()) {
yield $uuid;
}