File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
src/NHibernate.Test/TypesTest Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,21 @@ public class StringTypeWithLengthFixture : TestCaseMappingByCode
19
19
{
20
20
private int GetLongStringMappedLength ( )
21
21
{
22
+ // This is a bit ugly...
23
+ //
24
+ // Return a value that should be the largest possible length of a string column
25
+ // in the corresponding database. Note that the actual column type selected by the dialect
26
+ // depends on this value, so it must be the largest possible value for the type
27
+ // that the dialect will pick. Doesn't matter if the dialect can pick another
28
+ // type for an even larger size.
29
+
22
30
if ( Dialect is Oracle8iDialect )
23
31
return 2000 ;
24
- else
25
- return 4000 ;
32
+
33
+ if ( Dialect is MySQLDialect )
34
+ return 65535 ;
35
+
36
+ return 4000 ;
26
37
}
27
38
28
39
protected override HbmMapping GetMappings ( )
You can’t perform that action at this time.
0 commit comments