From 28be188fbca7a0e806993fa3e9d6d377978368b1 Mon Sep 17 00:00:00 2001
From: Roeland Jago Douma <roeland@famdouma.nl>
Date: Thu, 29 Oct 2020 09:15:48 +0100
Subject: [PATCH] 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>
---
 lib/private/DB/Connection.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/private/DB/Connection.php b/lib/private/DB/Connection.php
index 0386a8c5493..f4cecdbf41e 100644
--- a/lib/private/DB/Connection.php
+++ b/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);
 	}
 
 	/**
-- 
GitLab