Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
66fd914b
Commit
66fd914b
authored
Apr 14, 2017
by
Steve Müller
Committed by
GitHub
Apr 14, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2692 from jnvsor/mysqlisolevel
MySqlPlatform: Fix default isolation level
parents
e0169b2a
84bbcbbb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
MySqlPlatform.php
lib/Doctrine/DBAL/Platforms/MySqlPlatform.php
+9
-0
MySqlPlatformTest.php
tests/Doctrine/Tests/DBAL/Platforms/MySqlPlatformTest.php
+9
-0
No files found.
lib/Doctrine/DBAL/Platforms/MySqlPlatform.php
View file @
66fd914b
...
...
@@ -25,6 +25,7 @@ use Doctrine\DBAL\Schema\Index;
use
Doctrine\DBAL\Schema\Table
;
use
Doctrine\DBAL\Types\BlobType
;
use
Doctrine\DBAL\Types\TextType
;
use
Doctrine\DBAL\Connection
;
/**
* The MySqlPlatform provides the behavior, features and SQL dialect of the
...
...
@@ -1126,4 +1127,12 @@ class MySqlPlatform extends AbstractPlatform
return
parent
::
quoteStringLiteral
(
$str
);
}
/**
* {@inheritdoc}
*/
public
function
getDefaultTransactionIsolationLevel
()
{
return
Connection
::
TRANSACTION_REPEATABLE_READ
;
}
}
tests/Doctrine/Tests/DBAL/Platforms/MySqlPlatformTest.php
View file @
66fd914b
...
...
@@ -3,6 +3,7 @@
namespace
Doctrine\Tests\DBAL\Platforms
;
use
Doctrine\DBAL\Platforms\MySqlPlatform
;
use
Doctrine\DBAL\Connection
;
class
MySqlPlatformTest
extends
AbstractMySQLPlatformTestCase
{
...
...
@@ -10,4 +11,12 @@ class MySqlPlatformTest extends AbstractMySQLPlatformTestCase
{
return
new
MysqlPlatform
;
}
public
function
testHasCorrectDefaultTransactionIsolationLevel
()
{
$this
->
assertEquals
(
Connection
::
TRANSACTION_REPEATABLE_READ
,
$this
->
_platform
->
getDefaultTransactionIsolationLevel
()
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment