From ec0f80fee927ca572671ac7c733b960fb027e91f Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Wed, 5 Nov 2014 13:05:07 +0100 Subject: Split mapping from Access and Helper classes into it's own. Fully test them, too. remove unused methods split mapping methods off from Access class fix DB query handling move 'clear mapping' methods from static helper to new mapping class add tests test directly with DB finishing tests and fix return value from setDNbyUUID add corresponding class for groups and make abstract test class neutral. helper tests is now obsolete as the tested functions were moved to the new mapper class. add missing info to PHPDoc add unmap method fix namespaces fix test inheritance PHPDoc and a small code restructure for scrutinizer, no effective changes PostgreSQL does not accept LIMIT in DELETE queries phpdoc fixes, no code changes --- lib/private/db/connection.php | 1 + lib/public/idbconnection.php | 1 + 2 files changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/private/db/connection.php b/lib/private/db/connection.php index 9de7a719ff5..d10adee558c 100644 --- a/lib/private/db/connection.php +++ b/lib/private/db/connection.php @@ -142,6 +142,7 @@ class Connection extends \Doctrine\DBAL\Connection implements IDBConnection { * Insert a row if a matching row doesn't 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 * @return bool The return value from execute() */ public function insertIfNotExist($table, $input) { diff --git a/lib/public/idbconnection.php b/lib/public/idbconnection.php index 32310fe755f..0d19b2cc71e 100644 --- a/lib/public/idbconnection.php +++ b/lib/public/idbconnection.php @@ -80,6 +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 * * The input array if in the form: * -- cgit v1.2.3