Skip to content

Commit 9684af1

Browse files
fixup! Handle dialects supporting huge length limited strings
Use factory instead of creating new instance
1 parent fcffd64 commit 9684af1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/NHibernate.Test/Async/NHSpecificTest/NH2302/Fixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public async Task StringHugeLengthAsync()
5353
if (Sfi.ConnectionProvider.Driver is OdbcDriver || Dialect is MsSqlCeDialect)
5454
Assert.Ignore("NH-4065, not fixed for Odbc and MsSqlCe");
5555

56-
if (Dialect.GetTypeName(new StringSqlType(10000)) != Dialect.GetLongestTypeName(DbType.String))
56+
if (Dialect.GetTypeName(SqlTypeFactory.GetString(10000)) != Dialect.GetLongestTypeName(DbType.String))
5757
Assert.Ignore("Current dialect does support limited strings of 10 000 characters");
5858

5959
int id;

src/NHibernate.Test/NHSpecificTest/NH2302/Fixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public void StringHugeLength()
4242
if (Sfi.ConnectionProvider.Driver is OdbcDriver || Dialect is MsSqlCeDialect)
4343
Assert.Ignore("NH-4065, not fixed for Odbc and MsSqlCe");
4444

45-
if (Dialect.GetTypeName(new StringSqlType(10000)) != Dialect.GetLongestTypeName(DbType.String))
45+
if (Dialect.GetTypeName(SqlTypeFactory.GetString(10000)) != Dialect.GetLongestTypeName(DbType.String))
4646
Assert.Ignore("Current dialect does support limited strings of 10 000 characters");
4747

4848
int id;

0 commit comments

Comments
 (0)