diff --git a/lib/Doctrine/DBAL/Platforms/SQLServer2005Platform.php b/lib/Doctrine/DBAL/Platforms/SQLServer2005Platform.php index af42f516641..1bf91449958 100644 --- a/lib/Doctrine/DBAL/Platforms/SQLServer2005Platform.php +++ b/lib/Doctrine/DBAL/Platforms/SQLServer2005Platform.php @@ -48,7 +48,13 @@ public function supportsLimitOffset() */ public function getClobTypeDeclarationSQL(array $field) { - return 'VARCHAR(MAX)'; + $fixed = $field['fixed'] ?? false; + + if ($fixed) { + return 'NCHAR(MAX)'; + } + + return 'NVARCHAR(MAX)'; } /**