diff options
author | Vincent Petry <pvince81@owncloud.com> | 2013-12-19 02:56:46 -0800 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2013-12-19 02:56:46 -0800 |
commit | 684e331b5b6b6fd344258dab3b50dd61f134286a (patch) | |
tree | f93b8dba79a82191f664930397a4a854b9f0197c | |
parent | 748d90592a733ad7b9c14abe62840bcd8f4897c8 (diff) | |
parent | aa17a896ac03a4aa0530b9fbdf444d1e159d6ec2 (diff) | |
download | nextcloud-server-684e331b5b6b6fd344258dab3b50dd61f134286a.tar.gz nextcloud-server-684e331b5b6b6fd344258dab3b50dd61f134286a.zip |
Merge pull request #6503 from owncloud/finally-kill-mdb2-master
Finally kill mdb2 master
m--------- | 3rdparty | 0 | ||||
-rw-r--r-- | lib/public/db.php | 12 |
2 files changed, 6 insertions, 6 deletions
diff --git a/3rdparty b/3rdparty -Subproject 42efd966284debadf83b761367e529bc45f806d +Subproject 66b9afaeb53f31a2a02d4a998bad4a6f93620ff diff --git a/lib/public/db.php b/lib/public/db.php index c9997c79c3c..4a19d78d444 100644 --- a/lib/public/db.php +++ b/lib/public/db.php @@ -39,9 +39,9 @@ class DB { * @param string $query Query string * @param int $limit Limit of the SQL statement * @param int $offset Offset of the SQL statement - * @return \MDB2_Statement_Common prepared SQL query + * @return \Doctrine\DBAL\Statement prepared SQL query * - * SQL query via MDB2 prepare(), needs to be execute()'d! + * SQL query via Doctrine prepare(), needs to be execute()'d! */ static public function prepare( $query, $limit=null, $offset=null ) { return(\OC_DB::prepare($query, $limit, $offset)); @@ -73,7 +73,7 @@ class DB { * @param $table string The optional table name (will replace *PREFIX*) and add sequence suffix * @return int * - * MDB2 lastInsertID() + * \Doctrine\DBAL\Connection lastInsertID() * * Call this method right after the insert command or other functions may * cause trouble! @@ -86,18 +86,18 @@ class DB { * Start a transaction */ public static function beginTransaction() { - return(\OC_DB::beginTransaction()); + \OC_DB::beginTransaction(); } /** * Commit the database changes done during a transaction that is in progress */ public static function commit() { - return(\OC_DB::commit()); + \OC_DB::commit(); } /** - * Check if a result is an error, works with MDB2 and PDOException + * Check if a result is an error, works with Doctrine * @param mixed $result * @return bool */ |