Browse Source

Update internal connection class

executeUpdate is deprecated in favor of executeStatement.
We overwrote the old one hence the prefix was no longer replaced.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
pull/23764/head
Roeland Jago Douma 5 years ago
parent
commit
28be188fbc
No known key found for this signature in database GPG Key ID: F941078878347C0C
  1. 4
      lib/private/DB/Connection.php

4
lib/private/DB/Connection.php

@ -232,11 +232,11 @@ class Connection extends ReconnectWrapper implements IDBConnection {
*
* @throws \Doctrine\DBAL\DBALException
*/
public function executeUpdate($query, array $params = [], array $types = []) {
public function executeStatement($query, array $params = [], array $types = []) {
$query = $this->replaceTablePrefix($query);
$query = $this->adapter->fixupStatement($query);
$this->queriesExecuted++;
return parent::executeUpdate($query, $params, $types);
return parent::executeStatement($query, $params, $types);
}
/**

Loading…
Cancel
Save