aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Security/CredentialsManager.php
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2024-10-17 15:42:21 +0200
committerGit'Fellow <12234510+solracsf@users.noreply.github.com>2024-10-17 20:30:47 +0200
commita1681b0756ef784ef7056a3aae3e569a6dcae00e (patch)
tree13ad313771c95cfba750ca3f21048341c0e75105 /lib/private/Security/CredentialsManager.php
parent40fd76f69e601ab5579e8ce9b81318d3924dd463 (diff)
downloadnextcloud-server-dbQueriesExecStmt2.tar.gz
nextcloud-server-dbQueriesExecStmt2.zip
chore(db): Apply query prepared statementsdbQueriesExecStmt2
Fix: psalm fix: bad file fix: bug chore: add batch chore: add batch chore: add batch fix: psalm
Diffstat (limited to 'lib/private/Security/CredentialsManager.php')
-rw-r--r--lib/private/Security/CredentialsManager.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Security/CredentialsManager.php b/lib/private/Security/CredentialsManager.php
index fdf2c46ecf8..254984261d2 100644
--- a/lib/private/Security/CredentialsManager.php
+++ b/lib/private/Security/CredentialsManager.php
@@ -60,7 +60,7 @@ class CredentialsManager implements ICredentialsManager {
$qb->andWhere($qb->expr()->eq('user', $qb->createNamedParameter($userId)));
}
- $qResult = $qb->execute();
+ $qResult = $qb->executeQuery();
$result = $qResult->fetch();
$qResult->closeCursor();
@@ -89,7 +89,7 @@ class CredentialsManager implements ICredentialsManager {
$qb->andWhere($qb->expr()->eq('user', $qb->createNamedParameter($userId)));
}
- return $qb->execute();
+ return $qb->executeStatement();
}
/**
@@ -102,6 +102,6 @@ class CredentialsManager implements ICredentialsManager {
$qb->delete(self::DB_TABLE)
->where($qb->expr()->eq('user', $qb->createNamedParameter($userId)))
;
- return $qb->execute();
+ return $qb->executeStatement();
}
}