What version of the MyBatis.NET are you using? 1.9.2
Please describe the problem. Unit tests are best! Using a tag like the following : <iterate prepend=" " property="Filters" open="(" close=")" conjunction="OR"> <isNotEmpty property="Filters[].GeometryType"> GEOMETRYTYPE=#Filters[].GeometryType# </isNotEmpty> </iterate> gives an error "Error getting ordinal value from .net object. CauseInput string was not in a correct format". I found that there was a similar issue in Java that was fixed. https://issues.apache.org/jira/browse/IBATIS-293. I think this is still a problem with .Net.
What is the expected output? What do you see instead? I get the error Error getting ordinal value from .net object. CauseInput string was not in a correct format Please provide any additional information below.
Comment #1
Posted on Aug 24, 2012 by Happy LionI'm getting the same error, every conditional tag like isNull, ieEqual... Caused the same error than what the operator says. The problem is that Filters[] is not well parse. I don't know how to say it. But it's missing the index from the conditional tag. I don't remember my version of mybatis I post it tomorrow when I get to my job. I have a feeling that the problem is very similar to this: http://web.archiveorange.com/archive/v/Fx3DuX4t1nYT0MUFK6UF
if you need more I'm willing to help
Comment #2
Posted on Aug 24, 2012 by Happy LionI'm using the latest version 1.9.2 for dataAccess, and 1.6.2 for dataMapper.
I don't get it, after searching the web, it seems that the version in Java has fix this in 2006.
Status: New
Labels:
Type-Defect
Priority-Low