ibatis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clinton Begin (JIRA)" <ibatis-...@incubator.apache.org>
Subject [jira] Closed: (IBATIS-269) SqlExecutor calls getMoreResults without checking supportsMultipleResultSets
Date Mon, 14 Aug 2006 04:46:14 GMT
     [ http://issues.apache.org/jira/browse/IBATIS-269?page=all ]

Clinton Begin closed IBATIS-269.
--------------------------------

    Fix Version/s: 2.2.0
       Resolution: Fixed
         Assignee: Clinton Begin

> SqlExecutor calls getMoreResults without checking supportsMultipleResultSets
> ----------------------------------------------------------------------------
>
>                 Key: IBATIS-269
>                 URL: http://issues.apache.org/jira/browse/IBATIS-269
>             Project: iBatis for Java
>          Issue Type: Bug
>          Components: SQL Maps
>    Affects Versions: 2.1.6
>         Environment: Windows 2000 NL, IBM RAD 6.0.1
>            Reporter: M.H. Avegaart
>         Assigned To: Clinton Begin
>             Fix For: 2.2.0
>
>
> Hi,
> 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
?
> Example:
> 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: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message