diff options
-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 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); |