Skip to content

Commit edad252

Browse files
authored
Merge pull request #29074 from nextcloud/bug/noid/no-execute-query-in-21
[stable21] executeQuery and executeStatement are 22+
2 parents 308b48a + 670a2d5 commit edad252

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/user_ldap/lib/Migration/Version1120Date20210917155206.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ protected function handleIDs(string $table, bool $emitHooks) {
7373
$q = $this->getSelectQuery($table);
7474
$u = $this->getUpdateQuery($table);
7575

76-
$r = $q->executeQuery();
76+
$r = $q->execute();
7777
while ($row = $r->fetch()) {
7878
$newId = hash('sha256', $row['owncloud_name'], false);
7979
if ($emitHooks) {
@@ -82,7 +82,7 @@ protected function handleIDs(string $table, bool $emitHooks) {
8282
$u->setParameter('uuid', $row['directory_uuid']);
8383
$u->setParameter('newId', $newId);
8484
try {
85-
$u->executeStatement();
85+
$u->execute();
8686
if ($emitHooks) {
8787
$this->emitUnassign($row['owncloud_name'], false);
8888
$this->emitAssign($newId);

0 commit comments

Comments
 (0)