diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-15 16:03:55 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-15 16:03:55 +0100 |
commit | 27760ae54e3e28a894ebb610c859fbd3bb8682cc (patch) | |
tree | 0d0179862bbe1b67bfbc7320eaa5bd7c2b9d3421 /lib | |
parent | 7b06dd485d6c878e1e99b5482f6b481426b17745 (diff) | |
parent | 1b2f1cc2720682b253891a03c05e225cc7ca8882 (diff) | |
download | nextcloud-server-27760ae54e3e28a894ebb610c859fbd3bb8682cc.tar.gz nextcloud-server-27760ae54e3e28a894ebb610c859fbd3bb8682cc.zip |
Merge pull request #23164 from owncloud/db-connection-precondition-fix
Prevent certain DBs throwing exceptions on same-value updates
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/db/connection.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/db/connection.php b/lib/private/db/connection.php index 584904e6370..7904fab0726 100644 --- a/lib/private/db/connection.php +++ b/lib/private/db/connection.php @@ -293,7 +293,7 @@ class Connection extends \Doctrine\DBAL\Connection implements IDBConnection { $updateQb->where($where); $affected = $updateQb->execute(); - if ($affected === 0) { + if ($affected === 0 && !empty($updatePreconditionValues)) { throw new PreconditionNotMetException(); } |