diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-10-24 19:52:56 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-10-24 19:52:56 +0200 |
commit | 63f2b1f460f71514902efba280cb1d0ce3a7f2c4 (patch) | |
tree | cc91592c6475cd838e4284b2ff48691fdac42327 /lib/public | |
parent | 9fa54831111bf64294ff292b05d0c8e65fea4d37 (diff) | |
parent | 9c1015b790560439b039c0cf7e162b316fe3a2f7 (diff) | |
download | nextcloud-server-63f2b1f460f71514902efba280cb1d0ce3a7f2c4.tar.gz nextcloud-server-63f2b1f460f71514902efba280cb1d0ce3a7f2c4.zip |
Merge pull request #11767 from danbartram/add_db_rollback
Add missing DB rollback functionality
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/db.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/public/db.php b/lib/public/db.php index ba3a4724ce0..e8fc817106e 100644 --- a/lib/public/db.php +++ b/lib/public/db.php @@ -97,6 +97,13 @@ class DB { } /** + * Rollback the database changes done during a transaction that is in progress + */ + public static function rollback() { + \OC_DB::rollback(); + } + + /** * Check if a result is an error, works with Doctrine * @param mixed $result * @return bool |