<?php
namespace Doctrine\Tests\DBAL\Platforms;
use Doctrine\DBAL\Platforms\MySqlPlatform;
use Doctrine\DBAL\Connection;
class MySqlPlatformTest extends AbstractMySQLPlatformTestCase
{
public function createPlatform()
{
return new MysqlPlatform;
}
public function testHasCorrectDefaultTransactionIsolationLevel()
{
$this->assertEquals(
Connection::TRANSACTION_REPEATABLE_READ,
$this->_platform->getDefaultTransactionIsolationLevel()
);
}
}
-
Jonathan Vollebregt authored
Default isolation level on mysql is REPEATABLE READ https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_tx_isolation
84bbcbbb