diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-03-09 22:12:31 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-03-09 22:37:49 +0100 |
commit | 89be55a672afe0e09a33d4997ec10c0e833d4885 (patch) | |
tree | 2789f398177333df179ab73fc5ad9926edce39ec /lib/public | |
parent | b966a4eb17729230c461b9075143203bd50ed9e3 (diff) | |
download | nextcloud-server-89be55a672afe0e09a33d4997ec10c0e833d4885.tar.gz nextcloud-server-89be55a672afe0e09a33d4997ec10c0e833d4885.zip |
let insertIfNotExist() throw the native DBALException - no need to hide the real exception
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/db.php | 2 | ||||
-rw-r--r-- | lib/public/idbconnection.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/public/db.php b/lib/public/db.php index 50e519bbe91..d8d81f239b2 100644 --- a/lib/public/db.php +++ b/lib/public/db.php @@ -65,7 +65,7 @@ class DB { * */ public static function insertIfNotExist($table, $input, $compare = null) { - return(\OC_DB::insertIfNotExist($table, $input, $compare)); + return \OC::$server->getDatabaseConnection()->insertIfNotExist($table, $input, $compare); } /** diff --git a/lib/public/idbconnection.php b/lib/public/idbconnection.php index 3cc7ff3248b..c8a2c5796b5 100644 --- a/lib/public/idbconnection.php +++ b/lib/public/idbconnection.php @@ -80,7 +80,7 @@ interface IDBConnection { * Insert a row if a matching row doesn't exists. * @param string $table The table name (will replace *PREFIX*) to perform the replace on. * @param array $input - * @throws \OC\HintException + * @throws \Doctrine\DBAL\DBALException * * The input array if in the form: * |