diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-08-02 12:32:41 -0700 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-08-02 12:32:41 -0700 |
commit | afc8ee721df7e17e9855c383c529a2e7838ad748 (patch) | |
tree | 98ed54a2f3a2030b3dae36c8658fd682e589789b | |
parent | 43b31f2161775c7db62b46b8e4044f328f774aae (diff) | |
parent | fd317f599bd1d5fe2ae0260f3dec476a6efd5fdd (diff) | |
download | nextcloud-server-afc8ee721df7e17e9855c383c529a2e7838ad748.tar.gz nextcloud-server-afc8ee721df7e17e9855c383c529a2e7838ad748.zip |
Merge pull request #4299 from owncloud/simplify-db-transaction
Simplify OC_DB transaction functions
-rw-r--r-- | lib/db.php | 10 |
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; } /** |