summaryrefslogtreecommitdiffstats
path: root/lib/db.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-02-25 22:59:06 +0100
committerBart Visscher <bartv@thisnet.nl>2013-07-21 23:17:37 +0200
commit8a332cdc941c7f1c059dcfdf04fc851364abc1b4 (patch)
treebeca26c243c0e9005fd1cdacf8649dcd3c6097ef /lib/db.php
parent19b9c896340c572d9a42d033cd8824f33d18efa3 (diff)
downloadnextcloud-server-8a332cdc941c7f1c059dcfdf04fc851364abc1b4.tar.gz
nextcloud-server-8a332cdc941c7f1c059dcfdf04fc851364abc1b4.zip
Simplify OC_DB transaction functions
Diffstat (limited to 'lib/db.php')
-rw-r--r--lib/db.php10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/db.php b/lib/db.php
index 1f62326eea3..59fd73b37c7 100644
--- a/lib/db.php
+++ b/lib/db.php
@@ -53,7 +53,6 @@ class OC_DB {
*/
static private $DOCTRINE=null;
- static private $inTransaction=false;
static private $type=null;
/**
@@ -421,27 +420,18 @@ class OC_DB {
/**
* Start a transaction
- * @return bool
*/
public static function beginTransaction() {
self::connect();
self::$connection->beginTransaction();
- self::$inTransaction=true;
- return true;
}
/**
* Commit the database changes done during a transaction that is in progress
- * @return bool
*/
public static function commit() {
self::connect();
- if(!self::$inTransaction) {
- return false;
- }
self::$connection->commit();
- self::$inTransaction=false;
- return true;
}
/**