Commit d5953b7f authored by Steve Müller's avatar Steve Müller

fix deprecated CLOB type declaration in SQL Server platform

parent 28264a15
......@@ -1034,7 +1034,7 @@ class SQLServerPlatform extends AbstractPlatform
*/
public function getClobTypeDeclarationSQL(array $field)
{
return 'TEXT';
return 'VARCHAR(MAX)';
}
/**
......
......@@ -126,6 +126,11 @@ class SQLServerPlatformTest extends AbstractPlatformTestCase
$this->_platform->getVarcharTypeDeclarationSQL(array()),
'Long string declaration is not correct'
);
$this->assertSame('VARCHAR(MAX)', $this->_platform->getClobTypeDeclarationSQL(array()));
$this->assertSame(
'VARCHAR(MAX)',
$this->_platform->getClobTypeDeclarationSQL(array('length' => 5, 'fixed' => true))
);
}
public function testPrefersIdentityColumns()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment