Return-Path: Delivered-To: apmail-ibatis-dev-archive@www.apache.org Received: (qmail 72620 invoked from network); 23 Feb 2006 13:13:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Feb 2006 13:13:01 -0000 Received: (qmail 16737 invoked by uid 500); 23 Feb 2006 13:13:00 -0000 Delivered-To: apmail-ibatis-dev-archive@ibatis.apache.org Received: (qmail 16723 invoked by uid 500); 23 Feb 2006 13:12:59 -0000 Mailing-List: contact dev-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ibatis.apache.org Delivered-To: mailing list dev@ibatis.apache.org Received: (qmail 16712 invoked by uid 99); 23 Feb 2006 13:12:59 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Feb 2006 05:12:59 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 3CBADDD for ; Thu, 23 Feb 2006 14:12:38 +0100 (CET) Message-ID: <1133768442.1140700358246.JavaMail.jira@ajax.apache.org> Date: Thu, 23 Feb 2006 14:12:38 +0100 (CET) From: "M.H. Avegaart (JIRA)" To: dev@ibatis.apache.org Subject: [jira] Created: (IBATIS-269) SqlExecutor calls getMoreResults without checking supportsMultipleResultSets MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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