fix(db): Doctrine\DBAL\Connection::executeUpdate() is deprecated

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2024-07-01 11:23:02 +02:00
parent 11e84b8968
commit c84580d53a
No known key found for this signature in database
GPG key ID: 74434EFE0D2E2205

View file

@ -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);
}
/**