diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2007-12-06 12:27:53 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2007-12-06 12:27:53 +0000 |
commit | 718b3f9df6d724fc4d9c06ec74a78f217ff12449 (patch) | |
tree | ec1095727f4d95767e5e3846ed44558d60223afb /phpBB/includes/db | |
parent | 8cf535f5cf6d8fc248cefddddc5319e829a120f7 (diff) | |
download | forums-718b3f9df6d724fc4d9c06ec74a78f217ff12449.tar forums-718b3f9df6d724fc4d9c06ec74a78f217ff12449.tar.gz forums-718b3f9df6d724fc4d9c06ec74a78f217ff12449.tar.bz2 forums-718b3f9df6d724fc4d9c06ec74a78f217ff12449.tar.xz forums-718b3f9df6d724fc4d9c06ec74a78f217ff12449.zip |
commit all transactions on closing the db (there is only one, but we support inner transactions - logically speaking)
git-svn-id: file:///svn/phpbb/trunk@8271 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/db')
-rw-r--r-- | phpBB/includes/db/dbal.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/phpBB/includes/db/dbal.php b/phpBB/includes/db/dbal.php index b49f4511aa..e37ccda0db 100644 --- a/phpBB/includes/db/dbal.php +++ b/phpBB/includes/db/dbal.php @@ -124,7 +124,11 @@ class dbal if ($this->transaction) { - $this->sql_transaction('commit'); + do + { + $this->sql_transaction('commit'); + } + while ($this->transaction); } foreach ($this->open_queries as $query_id) |