Skip to content

Commit 3639719

Browse files
author
Christian
committed
Saves value in subclasses from EnumCharType
- GetValue was not used when saving the value in EnumCharType
1 parent b720934 commit 3639719

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/NHibernate/Type/EnumCharType.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public override void Set(IDbCommand cmd, object value, int index)
104104
}
105105
else
106106
{
107-
par.Value = ((Char) (Int32) (value)).ToString();
107+
par.Value = GetValue(value).ToString();
108108
}
109109
}
110110

@@ -164,4 +164,4 @@ public override string ObjectToSQLString(object value, Dialect.Dialect dialect)
164164
return '\'' + GetValue(value).ToString() + '\'';
165165
}
166166
}
167-
}
167+
}

0 commit comments

Comments
 (0)