Howdy,
I am querying AS400 with OdbcDriver. I receive the following error:
Invalid index 0 for this OdbcParameterCollection with Count=0.
Code:
var pickList = _session.Get<PickList>(pickListNumber);
Mapping:
<class name="PickList" table="MBCLREP">
<id name="Number" column="CLKZNB">
<generator class="assigned" />
</id>
</class>
I tried with the DB400Driver. I get this error instead:
Index was out of range. Must be non-negative and less than the size of
the collection.
Parameter name: index
If I cut/paste the query from the inner exception it works (although I
have to plug in the parameter for the '?').
NHibernate version is 3.2 off of Nuget. This mapping has worked in
version 2 line of NHibernate. Currently downloading 3.1 to see if it
has the same error.
Thanks
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.