Skip to content
Browse files

Merge pull request #194 from posulliv/small-test-fixes

Small test fixes for PostgreSQL
  • Loading branch information...
2 parents cddb50a + ae5ae2c commit ad1cacb59ce5242225dd940f25e678596f8e1a83 @beberlei beberlei committed Sep 5, 2012
View
8 lib/Doctrine/DBAL/Types/BigIntType.php
@@ -45,4 +45,12 @@ public function getBindingType()
{
return \PDO::PARAM_STR;
}
+
+ /**
+ * {@inheritdoc}
+ */
+ public function convertToPHPValue($value, AbstractPlatform $platform)
+ {
+ return (null === $value) ? null : (string) $value;
+ }
}
View
4 tests/Doctrine/Tests/DBAL/Platforms/PostgreSqlPlatformTest.php
@@ -5,8 +5,6 @@
use Doctrine\DBAL\Platforms\PostgreSqlPlatform;
use Doctrine\DBAL\Types\Type;
-require_once __DIR__ . '/../../TestInit.php';
-
class PostgreSqlPlatformTest extends AbstractPlatformTestCase
{
public function createPlatform()
@@ -227,4 +225,4 @@ public function getCreateTableColumnTypeCommentsSQL()
"COMMENT ON COLUMN test.data IS '(DC2Type:array)'"
);
}
-}
+}
View
3 tests/Doctrine/Tests/TestUtil.php
@@ -71,8 +71,7 @@ public static function getConnection()
$tmpConn = \Doctrine\DBAL\DriverManager::getConnection($tmpDbParams);
$realConn->close();
- $tmpConn->getSchemaManager()->dropDatabase($dbname);
- $tmpConn->getSchemaManager()->createDatabase($dbname);
+ $tmpConn->getSchemaManager()->dropAndCreateDatabase($dbname);
$tmpConn->close();
} else {

0 comments on commit ad1cacb

Please sign in to comment.
Something went wrong with that request. Please try again.