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