summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-11-03 11:03:02 +0100
committerJulius Härtl <jus@bitgrid.net>2020-11-03 11:03:02 +0100
commitf49630f48cb596bff68db683f562592bcf208700 (patch)
treec081157b2b40f383ddc7bf50276c16f00fe3acc9 /lib/private
parent9d559d282ecfbcf02d3d331b7de99ed80d5858b2 (diff)
downloadnextcloud-server-f49630f48cb596bff68db683f562592bcf208700.tar.gz
nextcloud-server-f49630f48cb596bff68db683f562592bcf208700.zip
Replace prefix in executeUpdate
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/DB/Connection.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/DB/Connection.php b/lib/private/DB/Connection.php
index 24b241b78fd..6835226357f 100644
--- a/lib/private/DB/Connection.php
+++ b/lib/private/DB/Connection.php
@@ -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);
}