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
b2f67c13
Commit
b2f67c13
authored
Sep 05, 2012
by
Benjamin Eberlei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'DBAL-194' into 2.3
parents
db9b0320
2d1d3979
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
BigIntType.php
lib/Doctrine/DBAL/Types/BigIntType.php
+8
-0
PostgreSqlPlatformTest.php
.../Doctrine/Tests/DBAL/Platforms/PostgreSqlPlatformTest.php
+1
-3
TestUtil.php
tests/Doctrine/Tests/TestUtil.php
+1
-2
No files found.
lib/Doctrine/DBAL/Types/BigIntType.php
View file @
b2f67c13
...
@@ -45,4 +45,12 @@ class BigIntType extends Type
...
@@ -45,4 +45,12 @@ class BigIntType extends Type
{
{
return
\PDO
::
PARAM_STR
;
return
\PDO
::
PARAM_STR
;
}
}
/**
* {@inheritdoc}
*/
public
function
convertToPHPValue
(
$value
,
AbstractPlatform
$platform
)
{
return
(
null
===
$value
)
?
null
:
(
string
)
$value
;
}
}
}
tests/Doctrine/Tests/DBAL/Platforms/PostgreSqlPlatformTest.php
View file @
b2f67c13
...
@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Platforms;
...
@@ -5,8 +5,6 @@ namespace Doctrine\Tests\DBAL\Platforms;
use
Doctrine\DBAL\Platforms\PostgreSqlPlatform
;
use
Doctrine\DBAL\Platforms\PostgreSqlPlatform
;
use
Doctrine\DBAL\Types\Type
;
use
Doctrine\DBAL\Types\Type
;
require_once
__DIR__
.
'/../../TestInit.php'
;
class
PostgreSqlPlatformTest
extends
AbstractPlatformTestCase
class
PostgreSqlPlatformTest
extends
AbstractPlatformTestCase
{
{
public
function
createPlatform
()
public
function
createPlatform
()
...
@@ -227,4 +225,4 @@ class PostgreSqlPlatformTest extends AbstractPlatformTestCase
...
@@ -227,4 +225,4 @@ class PostgreSqlPlatformTest extends AbstractPlatformTestCase
"COMMENT ON COLUMN test.data IS '(DC2Type:array)'"
"COMMENT ON COLUMN test.data IS '(DC2Type:array)'"
);
);
}
}
}
}
\ No newline at end of file
tests/Doctrine/Tests/TestUtil.php
View file @
b2f67c13
...
@@ -71,8 +71,7 @@ class TestUtil
...
@@ -71,8 +71,7 @@ class TestUtil
$tmpConn
=
\Doctrine\DBAL\DriverManager
::
getConnection
(
$tmpDbParams
);
$tmpConn
=
\Doctrine\DBAL\DriverManager
::
getConnection
(
$tmpDbParams
);
$realConn
->
close
();
$realConn
->
close
();
$tmpConn
->
getSchemaManager
()
->
dropDatabase
(
$dbname
);
$tmpConn
->
getSchemaManager
()
->
dropAndCreateDatabase
(
$dbname
);
$tmpConn
->
getSchemaManager
()
->
createDatabase
(
$dbname
);
$tmpConn
->
close
();
$tmpConn
->
close
();
}
else
{
}
else
{
...
...
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