1
0
mirror of synced 2025-01-18 06:21:40 +03:00

Update DatabaseDriverTest.php

SQL Server does not support unsigned integers
This commit is contained in:
flip111 2013-09-13 16:29:31 +02:00
parent c72698a997
commit e49a673a01

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']);
}