Update DatabaseDriverTest.php
SQL Server does not support unsigned integers
This commit is contained in:
parent
c72698a997
commit
e49a673a01
@ -184,8 +184,9 @@ class DatabaseDriverTest extends DatabaseDriverTestCase
|
|||||||
$this->assertEquals('integer', (string) $metadata->fieldMappings['id']['type']);
|
$this->assertEquals('integer', (string) $metadata->fieldMappings['id']['type']);
|
||||||
|
|
||||||
// FIXME: Condition here is fugly.
|
// FIXME: Condition here is fugly.
|
||||||
// NOTE: PostgreSQL does not support UNSIGNED
|
// NOTE: PostgreSQL and SQL SERVER do not support UNSIGNED integer
|
||||||
if ( ! $this->_em->getConnection()->getDatabasePlatform() instanceof PostgreSqlPlatform) {
|
if ( ! $this->_em->getConnection()->getDatabasePlatform() instanceof PostgreSqlPlatform AND
|
||||||
|
! $this->_em->getConnection()->getDatabasePlatform() instanceof SQLServerPlatform) {
|
||||||
$this->assertArrayHasKey('columnUnsigned', $metadata->fieldMappings);
|
$this->assertArrayHasKey('columnUnsigned', $metadata->fieldMappings);
|
||||||
$this->assertTrue($metadata->fieldMappings['columnUnsigned']['unsigned']);
|
$this->assertTrue($metadata->fieldMappings['columnUnsigned']['unsigned']);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user