summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-05-19 10:05:53 +0200
committerRoeland Jago Douma <rullzer@owncloud.com>2016-05-19 10:05:53 +0200
commit893204ef4a286a77289eeafda7291f95789aea42 (patch)
treee223711a0566c13e977e6ad1a9a31756288f3694 /lib
parentd666725fa783c21235eec79fa6dbe8ba1881fec3 (diff)
downloadnextcloud-server-893204ef4a286a77289eeafda7291f95789aea42.tar.gz
nextcloud-server-893204ef4a286a77289eeafda7291f95789aea42.zip
Fix broken exception naming
Diffstat (limited to 'lib')
-rw-r--r--lib/private/DB/Connection.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/DB/Connection.php b/lib/private/DB/Connection.php
index 7904fab0726..7cdc13a7c6d 100644
--- a/lib/private/DB/Connection.php
+++ b/lib/private/DB/Connection.php
@@ -33,7 +33,7 @@ use Doctrine\Common\EventManager;
use OC\DB\QueryBuilder\QueryBuilder;
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IDBConnection;
-use OCP\PreconditionNotMetException;
+use OCP\PreConditionNotMetException;
class Connection extends \Doctrine\DBAL\Connection implements IDBConnection {
/**
@@ -262,7 +262,7 @@ class Connection extends \Doctrine\DBAL\Connection implements IDBConnection {
* @param array $updatePreconditionValues ensure values match preconditions (column name => value)
* @return int number of new rows
* @throws \Doctrine\DBAL\DBALException
- * @throws PreconditionNotMetException
+ * @throws PreConditionNotMetException
*/
public function setValues($table, array $keys, array $values, array $updatePreconditionValues = []) {
try {
@@ -294,7 +294,7 @@ class Connection extends \Doctrine\DBAL\Connection implements IDBConnection {
$affected = $updateQb->execute();
if ($affected === 0 && !empty($updatePreconditionValues)) {
- throw new PreconditionNotMetException();
+ throw new PreConditionNotMetException();
}
return 0;