File tree 1 file changed +10
-0
lines changed
src/Persistence/Sql/Mssql
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,22 @@ public function getBlobTypeDeclarationSQL(array $column)
16
16
return $ this ->getClobTypeDeclarationSQL ($ column );
17
17
}
18
18
19
+ // remove once https://github.com/doctrine/dbal/pull/4987 is fixed
20
+ // and also $this->markDoctrineTypeCommented('text') below
21
+ public function getClobTypeDeclarationSQL (array $ column )
22
+ {
23
+ $ res = parent ::getClobTypeDeclarationSQL ($ column );
24
+
25
+ return (str_starts_with ($ res , 'VARCHAR ' ) ? 'N ' : '' ) . $ res ;
26
+ }
27
+
19
28
protected function initializeCommentedDoctrineTypes ()
20
29
{
21
30
parent ::initializeCommentedDoctrineTypes ();
22
31
23
32
$ this ->markDoctrineTypeCommented ('binary ' );
24
33
$ this ->markDoctrineTypeCommented ('blob ' );
34
+ $ this ->markDoctrineTypeCommented ('text ' );
25
35
}
26
36
27
37
// SQL Server DBAL platform has buggy identifier escaping, fix until fixed officially, see:
You can’t perform that action at this time.
0 commit comments