In com.ibatis.sqlmap.engine.execution.SQLExecutor class, line 390, the "break" should be "return" -------------------------------------------------------------------------------------------------
Key: IBATIS-272 URL: http://issues.apache.org/jira/browse/IBATIS-272 Project: iBatis for Java Type: Bug Components: SQL Maps Versions: 2.1.7 Environment: DB2 8.2 on Windows, iBATIS 2.1.7, WebSphere 6.0 Reporter: david zhang Priority: Critical When connecting to DB2, the DB2 will close the TYPE_FORWARD_ONLY (which is default) ResultSet automatically when reaching the end. So the SQLExecutor handleResults method throws SQLExeption out on line 397 for rs.next(). However, when line 389 reach the end of resultset, this method should return instead of break the "for" loop and continue to execute, this doesn't make sense. So the line 390 should be "return" instead of "break". -- 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira