Skip to content

Commit 2e2f42f

Browse files
committed
Revert cast function change
1 parent efa2919 commit 2e2f42f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/NHibernate/Dialect/Function/CastFunction.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,7 @@ public SqlString Render(IList args, ISessionFactoryImplementor factory)
5151
throw new QueryException("invalid NHibernate type for cast(), was:" + typeName);
5252
}
5353

54-
if (!factory.Dialect.TryGetCastTypeName(sqlTypeCodes[0], out sqlType))
55-
{
56-
sqlType = typeName;
57-
}
58-
//else
54+
sqlType = factory.Dialect.GetCastTypeName(sqlTypeCodes[0]);
5955
//{
6056
// //trim off the length/precision/scale
6157
// int loc = sqlType.IndexOf('(');

0 commit comments

Comments
 (0)