diff options
author | Joas Schilling <coding@schilljs.com> | 2024-07-01 11:23:02 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2024-07-19 11:21:12 +0200 |
commit | c84580d53a68801f9ebab7f9cf0b7d4a642ab791 (patch) | |
tree | e5159153bd40150e2858f92b8eb369a309da2f25 /lib/private/DB | |
parent | 11e84b89688abea9c7fdb16d92af0d1485fda436 (diff) | |
download | nextcloud-server-c84580d53a68801f9ebab7f9cf0b7d4a642ab791.tar.gz nextcloud-server-c84580d53a68801f9ebab7f9cf0b7d4a642ab791.zip |
fix(db): `Doctrine\DBAL\Connection::executeUpdate()` is deprecated
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/DB')
-rw-r--r-- | lib/private/DB/Connection.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/private/DB/Connection.php b/lib/private/DB/Connection.php index fb5729c678c..c24754a52bd 100644 --- a/lib/private/DB/Connection.php +++ b/lib/private/DB/Connection.php @@ -318,10 +318,7 @@ class Connection extends PrimaryReadReplicaConnection { * @throws Exception */ public function executeUpdate(string $sql, array $params = [], array $types = []): int { - $sql = $this->finishQuery($sql); - $this->queriesExecuted++; - $this->logQueryToFile($sql); - return parent::executeUpdate($sql, $params, $types); + return $this->executeStatement($sql, $params, $types); } /** |