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/private/db/connection.php | |
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/private/db/connection.php')
-rw-r--r-- | lib/private/db/connection.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/private/db/connection.php b/lib/private/db/connection.php index cc94c862b85..cdbfc94a039 100644 --- a/lib/private/db/connection.php +++ b/lib/private/db/connection.php @@ -152,16 +152,16 @@ class Connection extends \Doctrine\DBAL\Connection implements IDBConnection { } // internal use - public function realLastInsertId($seqName = null) - { + public function realLastInsertId($seqName = null) { return parent::lastInsertId($seqName); } /** - * Insert a row if a matching row doesn't exists. + * Insert a row if a matching row does not exists. * @param string $table. The table to insert into in the form '*PREFIX*tableName' - * @param array $input. An array of fieldname/value pairs - * @throws \OC\HintException + * @param array $input. An array of field name/value pairs + * @param array $compare + * @throws \Doctrine\DBAL\DBALException * @return bool The return value from execute() */ public function insertIfNotExist($table, $input, $compare = null) { |