summaryrefslogtreecommitdiffstats
path: root/lib/private/db/connection.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-03-09 22:12:31 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-03-09 22:37:49 +0100
commit89be55a672afe0e09a33d4997ec10c0e833d4885 (patch)
tree2789f398177333df179ab73fc5ad9926edce39ec /lib/private/db/connection.php
parentb966a4eb17729230c461b9075143203bd50ed9e3 (diff)
downloadnextcloud-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.php10
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) {