Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 32069 invoked from network); 28 Mar 2006 19:21:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Mar 2006 19:21:45 -0000 Received: (qmail 62161 invoked by uid 500); 28 Mar 2006 19:21:44 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 62124 invoked by uid 500); 28 Mar 2006 19:21:43 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 62115 invoked by uid 99); 28 Mar 2006 19:21:43 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Mar 2006 11:21:43 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= 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; Tue, 28 Mar 2006 11:21:43 -0800 Received: from ajax (localhost.localdomain [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 46926D49FF for ; Tue, 28 Mar 2006 20:21:22 +0100 (BST) Message-ID: <1013919216.1143573682285.JavaMail.jira@ajax> Date: Tue, 28 Mar 2006 20:21:22 +0100 (BST) From: "Daniel John Debrunner (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Created: (DERBY-1159) PreparedStatement.executeUpdate throws a XJ05C exception in a global transaction if the statement is HOLD_CURSORS_OVER_COMMIT 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 PreparedStatement.executeUpdate throws a XJ05C exception in a global transaction if the statement is HOLD_CURSORS_OVER_COMMIT ------------------------------------------------------------------------------------------------------------------------------ Key: DERBY-1159 URL: http://issues.apache.org/jira/browse/DERBY-1159 Project: Derby Type: Bug Versions: 10.1.2.1, 10.2.0.0 Reporter: Daniel John Debrunner Assigned to: Daniel John Debrunner Priority: Minor SQLSTATE(XJ05C): Cannot set holdability ResultSet.HOLD_CURSORS_OVER_COMMIT for a global transaction. Exception is thrown in client, in embedded the statement executes successfully. Since HOLD_CURSORS_OVER_COMMIT only applies to ResultSets and executeUpdate states it only succeeds if the statement does not generate ResultSets, then this combination should succeed. Probably related to the fact that in embedded an execute() call on the same PreparedStatement will thrown a XJ05C exception Workaround is to prepare the statement explicitly with CLOSE_CURSORS_AT_COMMIT. -- 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