-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Small feature request
PostPosted: Mon Aug 25, 2008 6:29 pm 
Beginner
Beginner

Joined: Mon Feb 04, 2008 7:36 pm
Posts: 31
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...


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 26, 2008 2:31 am 
Expert
Expert

Joined: Thu Dec 14, 2006 5:57 am
Posts: 1185
Location: Zurich, Switzerland
Create an JIRA issue for your request.

http://jira.nhibernate.org/secure/Dashboard.jspa

_________________
--Wolfgang


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.