Merge pull request #788 from flip111/patch-3
Update DatabaseDriverTest.php
This commit is contained in:
commit
0e8e5c9ba5
@ -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']);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user