summaryrefslogtreecommitdiffstats
path: root/lib/private/db
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-01-15 16:13:03 +0100
committerRobin Appelman <icewind@owncloud.com>2016-01-18 12:09:01 +0100
commit895fd49fb26da4c00ab8c64a45d58dae41fd7962 (patch)
tree65074a39f1f748bd3ab6ece1a70bb92a0ae25ca1 /lib/private/db
parent7ba715d14418f8cb8703528f7373d76492410e38 (diff)
downloadnextcloud-server-895fd49fb26da4c00ab8c64a45d58dae41fd7962.tar.gz
nextcloud-server-895fd49fb26da4c00ab8c64a45d58dae41fd7962.zip
also handle not null violations
Diffstat (limited to 'lib/private/db')
-rw-r--r--lib/private/db/connection.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/db/connection.php b/lib/private/db/connection.php
index b1c1c12cb49..2d7545df36e 100644
--- a/lib/private/db/connection.php
+++ b/lib/private/db/connection.php
@@ -263,7 +263,7 @@ class Connection extends \Doctrine\DBAL\Connection implements IDBConnection {
}, array_merge($keys, $values))
);
return $insertQb->execute();
- } catch (\Doctrine\DBAL\Exception\UniqueConstraintViolationException $e) {
+ } catch (\Doctrine\DBAL\Exception\ConstraintViolationException $e) {
// value already exists, try update
$updateQb = $this->getQueryBuilder();
$updateQb->update($table);