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
2d1d3979
Commit
2d1d3979
authored
Aug 29, 2012
by
Padraig O'Sullivan
Committed by
Benjamin Eberlei
Sep 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify fix for test issue with bigint type.
parent
5308f084
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
12 deletions
+2
-12
BigIntType.php
lib/Doctrine/DBAL/Types/BigIntType.php
+1
-11
TypeConversionTest.php
tests/Doctrine/Tests/DBAL/Functional/TypeConversionTest.php
+1
-1
No files found.
lib/Doctrine/DBAL/Types/BigIntType.php
View file @
2d1d3979
...
...
@@ -51,16 +51,6 @@ class BigIntType extends Type
*/
public
function
convertToPHPValue
(
$value
,
AbstractPlatform
$platform
)
{
if
(
null
===
$value
)
{
return
$value
;
}
/*
* PostgreSQL detects 32 vs 64 bit systems and casts correctly
* for bigint types.
*/
if
(
$platform
->
getName
()
===
'postgresql'
&&
PHP_INT_SIZE
!==
4
)
{
return
(
string
)
$value
;
}
return
$value
;
return
(
null
===
$value
)
?
null
:
(
string
)
$value
;
}
}
tests/Doctrine/Tests/DBAL/Functional/TypeConversionTest.php
View file @
2d1d3979
...
...
@@ -98,4 +98,4 @@ class TypeConversionTest extends \Doctrine\Tests\DbalFunctionalTestCase
}
}
}
}
}
\ No newline at end of file
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