You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Clinton Begin (JIRA)" <ib...@incubator.apache.org> on 2006/08/14 06:46:14 UTC

[jira] Closed: (IBATIS-269) SqlExecutor calls getMoreResults without checking supportsMultipleResultSets

     [ 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