diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/db.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/db.php b/lib/db.php index b7775b75ea4..9b18bc4c97f 100644 --- a/lib/db.php +++ b/lib/db.php @@ -367,6 +367,7 @@ class OC_DB { * @param string $savePoint (optional) name of the savepoint to set */ public static function beginTransaction($savePoint=''){ + self::connect(); if (!self::$DBConnection->supports('transactions')) { return false; } @@ -385,6 +386,7 @@ class OC_DB { * @param string $savePoint (optional) name of the savepoint to commit */ public static function commit($savePoint=''){ + self::connect(); if(!self::$DBConnection->inTransaction()){ return false; } |