Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 45677 invoked from network); 18 Nov 2005 15:20:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Nov 2005 15:20:10 -0000 Received: (qmail 70984 invoked by uid 500); 18 Nov 2005 15:20:05 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 70861 invoked by uid 500); 18 Nov 2005 15:20:05 -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 70712 invoked by uid 99); 18 Nov 2005 15:20:04 -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; Fri, 18 Nov 2005 07:20:04 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 17E4B226 for ; Fri, 18 Nov 2005 16:19:43 +0100 (CET) Message-ID: <1673196337.1132327183096.JavaMail.jira@ajax.apache.org> Date: Fri, 18 Nov 2005 16:19:43 +0100 (CET) From: "Dag H. Wanvik (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-611) Network client: updateRow() causes a commit when autoCommit = true In-Reply-To: <735661913.1128931673821.JavaMail.jira@ajax.apache.org> 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 [ http://issues.apache.org/jira/browse/DERBY-611?page=comments#action_12357978 ] Dag H. Wanvik commented on DERBY-611: ------------------------------------- deleteRow has the same problem. In both cases (updateRow and deleteRow), there is explicit code to make a commit happen is autocommit is on. > Network client: updateRow() causes a commit when autoCommit = true > ------------------------------------------------------------------ > > Key: DERBY-611 > URL: http://issues.apache.org/jira/browse/DERBY-611 > Project: Derby > Type: Bug > Components: Network Client > Environment: Java Version: 1.5.0_01 > Java Vendor: Sun Microsystems Inc. > Java home: /usr/jdk/instances/jdk1.5.0/jre > Java classpath: classes > OS name: SunOS > OS architecture: x86 > OS version: 5.10 > Reporter: Fernanda Pizzorno > Priority: Minor > Attachments: testCSUpdateRowCommits.java > > On the network client driver, the ResultSet method updateRow makes the transaction commit, when autocommit is true. The correct behavior is to commit only when the result set is closed. This works correctly in the embedded driver. > The repro case is uploaded as an attachment "testCSUpdateRowCommits.java". > Output (repro case): > updateRow() should not commit > Value: 16, expected value 1. Should not have committed updateRow() -- 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