salybge / mybatisnet

Automatically exported from code.google.com/p/mybatisnet
0 stars 0 forks source link

Error using isNotempty with iterator #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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.

Original issue reported on code.google.com by lijo...@gmail.com on 19 Jul 2010 at 5:11

GoogleCodeExporter commented 8 years ago
I'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

Original comment by fanfa...@gmail.com on 24 Aug 2012 at 1:34

GoogleCodeExporter commented 8 years ago
I'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.

Original comment by fanfa...@gmail.com on 24 Aug 2012 at 5:22