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
1919 {
2020 private int GetLongStringMappedLength ( )
2121 {
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+
2230 if ( Dialect is Oracle8iDialect )
2331 return 2000 ;
24- else
25- return 4000 ;
32+
33+ if ( Dialect is MySQLDialect )
34+ return 65535 ;
35+
36+ return 4000 ;
2637 }
2738
2839 protected override HbmMapping GetMappings ( )
You can’t perform that action at this time.
0 commit comments