mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-09 19:26:53 +02:00
[ticket/16549] Fix database testcase transactions handling, fix indentations
PHPBB3-16549
This commit is contained in:
@ -392,12 +392,16 @@ class phpbb_database_test_connection_manager
|
|||||||
{
|
{
|
||||||
$this->pdo->beginTransaction();
|
$this->pdo->beginTransaction();
|
||||||
}
|
}
|
||||||
else if ($query === 'commit')
|
else if ($query === 'commit' && $this->pdo->inTransaction())
|
||||||
{
|
{
|
||||||
$this->pdo->commit();
|
$this->pdo->commit();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (!$this->pdo->inTransaction())
|
||||||
|
{
|
||||||
|
$this->pdo->beginTransaction();
|
||||||
|
}
|
||||||
$this->pdo->exec($query);
|
$this->pdo->exec($query);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user