1
0
mirror of synced 2024-12-13 14:56:01 +03:00

Merge pull request #788 from flip111/patch-3

Update DatabaseDriverTest.php
This commit is contained in:
Guilherme Blanco 2013-09-30 11:08:41 -07:00
commit 0e8e5c9ba5

View File

@ -184,8 +184,9 @@ class DatabaseDriverTest extends DatabaseDriverTestCase
$this->assertEquals('integer', (string) $metadata->fieldMappings['id']['type']);
// FIXME: Condition here is fugly.
// NOTE: PostgreSQL does not support UNSIGNED
if ( ! $this->_em->getConnection()->getDatabasePlatform() instanceof PostgreSqlPlatform) {
// NOTE: PostgreSQL and SQL SERVER do not support UNSIGNED integer
if ( ! $this->_em->getConnection()->getDatabasePlatform() instanceof PostgreSqlPlatform AND
! $this->_em->getConnection()->getDatabasePlatform() instanceof SQLServerPlatform) {
$this->assertArrayHasKey('columnUnsigned', $metadata->fieldMappings);
$this->assertTrue($metadata->fieldMappings['columnUnsigned']['unsigned']);
}