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
4650d9c3
Unverified
Commit
4650d9c3
authored
Mar 29, 2020
by
Sergei Morozov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AbstractPlatform::_getTransactionIsolationLevelSQL() must return a string
parent
e5068b42
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
SQLAnywherePlatform.php
lib/Doctrine/DBAL/Platforms/SQLAnywherePlatform.php
+4
-4
SqlitePlatform.php
lib/Doctrine/DBAL/Platforms/SqlitePlatform.php
+2
-2
No files found.
lib/Doctrine/DBAL/Platforms/SQLAnywherePlatform.php
View file @
4650d9c3
...
@@ -1293,13 +1293,13 @@ SQL
...
@@ -1293,13 +1293,13 @@ SQL
{
{
switch
(
$level
)
{
switch
(
$level
)
{
case
TransactionIsolationLevel
::
READ_UNCOMMITTED
:
case
TransactionIsolationLevel
::
READ_UNCOMMITTED
:
return
0
;
return
'0'
;
case
TransactionIsolationLevel
::
READ_COMMITTED
:
case
TransactionIsolationLevel
::
READ_COMMITTED
:
return
1
;
return
'1'
;
case
TransactionIsolationLevel
::
REPEATABLE_READ
:
case
TransactionIsolationLevel
::
REPEATABLE_READ
:
return
2
;
return
'2'
;
case
TransactionIsolationLevel
::
SERIALIZABLE
:
case
TransactionIsolationLevel
::
SERIALIZABLE
:
return
3
;
return
'3'
;
default
:
default
:
throw
new
InvalidArgumentException
(
'Invalid isolation level:'
.
$level
);
throw
new
InvalidArgumentException
(
'Invalid isolation level:'
.
$level
);
}
}
...
...
lib/Doctrine/DBAL/Platforms/SqlitePlatform.php
View file @
4650d9c3
...
@@ -168,11 +168,11 @@ class SqlitePlatform extends AbstractPlatform
...
@@ -168,11 +168,11 @@ class SqlitePlatform extends AbstractPlatform
{
{
switch
(
$level
)
{
switch
(
$level
)
{
case
TransactionIsolationLevel
::
READ_UNCOMMITTED
:
case
TransactionIsolationLevel
::
READ_UNCOMMITTED
:
return
0
;
return
'0'
;
case
TransactionIsolationLevel
::
READ_COMMITTED
:
case
TransactionIsolationLevel
::
READ_COMMITTED
:
case
TransactionIsolationLevel
::
REPEATABLE_READ
:
case
TransactionIsolationLevel
::
REPEATABLE_READ
:
case
TransactionIsolationLevel
::
SERIALIZABLE
:
case
TransactionIsolationLevel
::
SERIALIZABLE
:
return
1
;
return
'1'
;
default
:
default
:
return
parent
::
_getTransactionIsolationLevelSQL
(
$level
);
return
parent
::
_getTransactionIsolationLevelSQL
(
$level
);
}
}
...
...
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