Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 83553 invoked from network); 26 Apr 2006 09:35:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Apr 2006 09:35:34 -0000 Received: (qmail 8148 invoked by uid 500); 26 Apr 2006 09:35:26 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 8106 invoked by uid 500); 26 Apr 2006 09:35:26 -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 8097 invoked by uid 99); 26 Apr 2006 09:35:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Apr 2006 02:35:26 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Apr 2006 02:35:25 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 847E9410006 for ; Wed, 26 Apr 2006 09:35:04 +0000 (GMT) Message-ID: <60431950.1146044104540.JavaMail.root@brutus> Date: Wed, 26 Apr 2006 09:35:04 +0000 (GMT+00:00) From: "Andreas Korneliussen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-1251) cancelRowUpdates() affects rows updated with updateRow() in scrollable updatable resultsets In-Reply-To: <12863536.1145957407063.JavaMail.jira@brutus> 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-1251?page=all ] Andreas Korneliussen updated DERBY-1251: ---------------------------------------- Derby Info: [Patch Available] > cancelRowUpdates() affects rows updated with updateRow() in scrollable updatable resultsets > ------------------------------------------------------------------------------------------- > > Key: DERBY-1251 > URL: http://issues.apache.org/jira/browse/DERBY-1251 > Project: Derby > Type: Bug > Components: JDBC, Network Client > Versions: 10.2.0.0 > Reporter: Andreas Korneliussen > Assignee: Andreas Korneliussen > Priority: Minor > Attachments: DERBY-1251.diff, DERBY-1251.stat, derbyall_report.txt > > If an application does the following: > rs.updateInt(1, newValueCol1); > rs.updateRow(); > rs.updateInt(2, newValueCol2); > rs.cancelRowUpdates(); > Then, when calling rs.getInt(1), it will return the old value. Instead it should return the new value. > Workaround: after calling rs.updateRow(), the application could call rs.relative(0). > This problem does not affect forward only resultsets, since after an updateRow() they get positoned before the next row, leaving it impossible to do anything with the current row. -- 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