Hibernate version:
2.1.0 Alpha1
Can the error on line 124 of SqlCommand\InFragment.cs have the property columnName added to the error descripton.
Right now, if there is an error in the mapping I get:
"Attempting to parse a null value into an sql string", basically, there is something wrong somewhere in my mapping.... not so helpful. I have to debug NHibernate to figure out where my mapping exception is.
A quick fix would be to change:
Code:
throw new ArgumentOutOfRangeException("Attempting to parse a null value into an sql string.");
to this:
Code:
throw new ArgumentOutOfRangeException("Attempting to parse a null value into an sql string on column '" + columnName + "'");
better would be trap it in the calling function ( SingleTableEntityPersister.DiscriminatorFilterFragment(string alias) ) and wrap it up with the class name etc...