[ http://issues.apache.org/jira/browse/IBATIS-42?page=comments#action_62698 ] Larry Meadors commented on IBATIS-42: -------------------------------------
Brandon, I think we should fix it. Reality is that I do not think I can get to it before May. Do you think it is a case where you could better map out the fix so that maybe one of the reporting users could fix it? Jerome seemed to have a reproducible test case that shows the failure, so maybe with a bit of guidance he could fix it? I know you are as busy (or more busy) that I am, so if you can not get to it, you can not get to it. I suspect Clinton is in the same situation - or he would have fixed it already. ;-) The nature of any OSS project is that users they have to either (a) wait; or (b) open the code up, fix it themselves, and submit the patch. Larry > ProbeException when iterate tag contains dynamic tags > ----------------------------------------------------- > > Key: IBATIS-42 > URL: http://issues.apache.org/jira/browse/IBATIS-42 > Project: iBatis for Java > Type: Bug > Components: SQL Maps > Versions: 2.0.9 > Environment: JDK 1.4.2_06 > Windows 2000 SP4 > Reporter: Jerome Jacobsen > Assignee: Brandon Goodin > Attachments: DynamicAccount.xml, IterateTest.java, IterateTest_JUnit.out > > When upgrading my project from SqlMaps 1.3.1 to 2.0.9 I encountered this bug. > I modified the IterateTest JUnit test to reproduce it there. > I've added this to DynamicAccount.xml: > <select id="dynamicQueryByExample2" > parameterClass="testdomain.Account" > resultClass="testdomain.Account"> > select > ACC_ID as id, > ACC_FIRST_NAME as firstName, > ACC_LAST_NAME as lastName, > ACC_EMAIL as emailAddress > from ACCOUNT > <dynamic prepend="WHERE"> > <isNotNull prepend="AND" property="ids"> > <iterate property="ids" conjunction="OR"> > <isNotNull property="ids"> > ACC_ID = #ids[]# > </isNotNull> > </iterate> > </isNotNull> > </dynamic> > </select> > And I've added this test in IterateTest.java: > public void testArrayPropertyIterate2() throws SQLException { > Account account = new Account(); > account.setIds(new int[]{1, 2, 3}); > List list = sqlMap.queryForList("dynamicQueryByExample2", account); > assertAccount1((Account) list.get(0)); > assertEquals(3, list.size()); > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira
