Merge pull request #23863 from nextcloud/bugfix/noid/db-update

Replace prefix in executeUpdate
This commit is contained in:
Roeland Jago Douma 2020-11-03 15:00:40 +01:00 committed by GitHub
commit 2466902e2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -219,6 +219,9 @@ class Connection extends ReconnectWrapper implements IDBConnection {
}
public function executeUpdate($sql, array $params = [], array $types = []) {
$sql = $this->replaceTablePrefix($sql);
$sql = $this->adapter->fixupStatement($sql);
$this->queriesExecuted++;
return parent::executeUpdate($sql, $params, $types);
}