From e49a673a01d3756612fef14eef13450d6dbb36c1 Mon Sep 17 00:00:00 2001 From: flip111 Date: Fri, 13 Sep 2013 16:29:31 +0200 Subject: [PATCH] Update DatabaseDriverTest.php SQL Server does not support unsigned integers --- tests/Doctrine/Tests/ORM/Functional/DatabaseDriverTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/Doctrine/Tests/ORM/Functional/DatabaseDriverTest.php b/tests/Doctrine/Tests/ORM/Functional/DatabaseDriverTest.php index fce29d93c..1b94ed1d1 100644 --- a/tests/Doctrine/Tests/ORM/Functional/DatabaseDriverTest.php +++ b/tests/Doctrine/Tests/ORM/Functional/DatabaseDriverTest.php @@ -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']); }