[jira] Closed: (IBATIS-272) In com.ibatis.sqlmap.engine.execution.SQLExecutor class, line 390, the break should be return

2006-03-01 Thread Sven Boden (JIRA)
 [ http://issues.apache.org/jira/browse/IBATIS-272?page=all ]
 
Sven Boden closed IBATIS-272:
-

Resolution: Duplicate
 Assign To: Sven Boden

This is a duplicate of IBATIS-109, which is in SVN since last week.

I would suggest to extract iBATIS from SVN and compile it. If it's not possible 
I can send you compiled SVN version.


 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
 Assignee: Sven Boden
 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



[jira] Created: (IBATIS-273) Support generics

2006-03-01 Thread Reuben Firmin (JIRA)
Support generics


 Key: IBATIS-273
 URL: http://issues.apache.org/jira/browse/IBATIS-273
 Project: iBatis for Java
Type: Improvement
  Components: SQL Maps  
Reporter: Reuben Firmin


Hello,

I know that JDK 1.5 support is not intended yet, so this is just a request for 
the future. It'd be great if you could support generics, particularly from the 
queryForList object; at the moment I do:

ListString locked = 
getSqlMapClientTemplate().queryForList(Daemon.getLockInfo, null);

...which compiles fine, but isn't strictly valid, since queryForList just 
returns a List, and not a ListT.

Thanks

-- 
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