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
This commit is contained in:
Meik Sievertsen 2007-12-06 12:27:53 +00:00
parent 8cf535f5cf
commit 718b3f9df6

View file

@ -123,9 +123,13 @@ class dbal
} }
if ($this->transaction) if ($this->transaction)
{
do
{ {
$this->sql_transaction('commit'); $this->sql_transaction('commit');
} }
while ($this->transaction);
}
foreach ($this->open_queries as $query_id) foreach ($this->open_queries as $query_id)
{ {