We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3392254 commit c4c7716Copy full SHA for c4c7716
src/NHibernate/Type/AbstractStringType.cs
@@ -67,7 +67,7 @@ public override void Set(DbCommand cmd, object value, int index, ISessionImpleme
67
// set the parameter value before the size check, since ODBC changes the size automatically
68
parameter.Value = value;
69
70
- if (parameter.Size > 0 && value != null && ((string) value).Length > parameter.Size)
+ if (parameter.Size > 0 && ((string)value).Length > parameter.Size)
71
throw new HibernateException("The length of the string value exceeds the length configured in the mapping/parameter.");
72
}
73
0 commit comments