diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-11-03 11:03:02 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-11-03 11:03:02 +0100 |
commit | f49630f48cb596bff68db683f562592bcf208700 (patch) | |
tree | c081157b2b40f383ddc7bf50276c16f00fe3acc9 | |
parent | 9d559d282ecfbcf02d3d331b7de99ed80d5858b2 (diff) | |
download | nextcloud-server-f49630f48cb596bff68db683f562592bcf208700.tar.gz nextcloud-server-f49630f48cb596bff68db683f562592bcf208700.zip |
Replace prefix in executeUpdate
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r-- | lib/private/DB/Connection.php | 3 |
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); } |