diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-11-03 15:00:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-03 15:00:40 +0100 |
commit | 2466902e2a9c933002064089c246f51f3a2006af (patch) | |
tree | 17ddcb4c477bb930673975e9917bb07e558c53f3 | |
parent | af5a07e73c2a61e900cd27f0f305b71a3cb2f4c3 (diff) | |
parent | f49630f48cb596bff68db683f562592bcf208700 (diff) | |
download | nextcloud-server-2466902e2a9c933002064089c246f51f3a2006af.tar.gz nextcloud-server-2466902e2a9c933002064089c246f51f3a2006af.zip |
Merge pull request #23863 from nextcloud/bugfix/noid/db-update
Replace prefix in executeUpdate
-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); } |