ibatis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "M.H. Avegaart (JIRA)" <ibatis-...@incubator.apache.org>
Subject [jira] Created: (IBATIS-269) SqlExecutor calls getMoreResults without checking supportsMultipleResultSets
Date Thu, 23 Feb 2006 13:12:38 GMT
SqlExecutor calls getMoreResults without checking supportsMultipleResultSets

         Key: IBATIS-269
         URL: http://issues.apache.org/jira/browse/IBATIS-269
     Project: iBatis for Java
        Type: Bug
  Components: SQL Maps  
    Versions: 2.1.6    
 Environment: Windows 2000 NL, IBM RAD 6.0.1
    Reporter: M.H. Avegaart


I'm using the JdbcOdbcDriver to connect to a really old ODBC driver (Solid v2.2). This ODBC
driver doesn't support multiple resultsets, so calling getMoreResults() in com.ibatis.sqlmap.engine.execution.SqlExecutor
will throw a SQLException.

Could you check if the connection supports multiple resultsets before calling getMoreResults


private boolean getMoreResults(final Statement stmt) throws SQLException {
	if (!stmt.getConnection().getMetaData().supportsMultipleResultSets()) {
		return false;
	return stmt.getMoreResults();

Thanks, Condor

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message