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-08-02 16:12:34 +0200
commitfd317f599bd1d5fe2ae0260f3dec476a6efd5fdd (patch)
tree6f2893fce66d1a824fd23d61b659a1479edc4e1f /lib/db.php
parenteed63ae5127680011256093588a7c68ca95ddd02 (diff)
downloadnextcloud-server-fd317f599bd1d5fe2ae0260f3dec476a6efd5fdd.tar.gz
nextcloud-server-fd317f599bd1d5fe2ae0260f3dec476a6efd5fdd.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 dd48c329490..311cdcfecf5 100644
--- a/lib/db.php
+++ b/lib/db.php
@@ -56,7 +56,6 @@ class OC_DB {
*/
static private $DOCTRINE=null;
- static private $inTransaction=false;
static private $prefix=null;
static private $type=null;
@@ -624,27 +623,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;
}
/**