Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 74442 invoked from network); 4 Jan 2005 18:31:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 4 Jan 2005 18:31:27 -0000 Received: (qmail 21264 invoked by uid 500); 4 Jan 2005 18:30:37 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 21215 invoked by uid 500); 4 Jan 2005 18:30:37 -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: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 21156 invoked by uid 99); 4 Jan 2005 18:30:36 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from e1.ny.us.ibm.com (HELO e1.ny.us.ibm.com) (32.97.182.141) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 04 Jan 2005 10:30:32 -0800 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by e1.ny.us.ibm.com (8.12.10/8.12.10) with ESMTP id j04IURvk018966 for ; Tue, 4 Jan 2005 13:30:27 -0500 Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay04.pok.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id j04IURAl246560 for ; Tue, 4 Jan 2005 13:30:27 -0500 Received: from d01av03.pok.ibm.com (loopback [127.0.0.1]) by d01av03.pok.ibm.com (8.12.11/8.12.11) with ESMTP id j04IURbr016990 for ; Tue, 4 Jan 2005 13:30:27 -0500 Received: from debrunners.com (dyn9072133045.usca.ibm.com [9.72.133.45] (may be forged)) by d01av03.pok.ibm.com (8.12.11/8.12.11) with ESMTP id j04IUQ6J016970 for ; Tue, 4 Jan 2005 13:30:27 -0500 Message-ID: <41DAE0A6.3030808@debrunners.com> Date: Tue, 04 Jan 2005 10:29:58 -0800 From: Daniel John Debrunner User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4.1) Gecko/20031008 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Derby Development Subject: Re: Position of the ResultSet after updateRow? References: <41DABA6C.7F334B5C@Remulak.Net> In-Reply-To: <41DABA6C.7F334B5C@Remulak.Net> X-Enigmail-Version: 0.76.8.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mamta Satoor wrote: > Hi, > > Some of you might recall the discussion on where the ResultSet should be > positioned after deleteRow and the conclusion that it will be placed right > before the next row in the ResultSet. > > My question is about ResultSet position after updateRow. An updateRow > can make the row not qualify for the original select query. Can anyone from the Sun JDBC team comment on how updateRow() and insertRow() are intended to behave when they modify or create rows that would not qualify according to the SQL query that created the ResultSet? Reading between the lines in the JDBC book seems to imply that the updated or inserted row are always part of the ResultSet, even though a subsequent execution would not return that row. I can see this approach makes sense for going through a list of items in an application. Say all items with a price <= 10.0, and modifying the price of some to be > 10.0, as a user I might expect to see the newly modified row remain in my view, rather than just disappear. Dan. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFB2uCmIv0S4qsbfuQRAtagAJwOkXd7mu0nLteBa26X4tqGY324RgCdE8ld BXWcUymBmC0cK0Yh9dwPE84= =YSr2 -----END PGP SIGNATURE-----