Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 42094 invoked from network); 7 Nov 2005 08:57:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Nov 2005 08:57:10 -0000 Received: (qmail 6232 invoked by uid 500); 7 Nov 2005 08:57:09 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 5997 invoked by uid 500); 7 Nov 2005 08:57:08 -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 5988 invoked by uid 99); 7 Nov 2005 08:57:08 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Nov 2005 00:57:08 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.18.98.34] (HELO brmea-mail-3.sun.com) (192.18.98.34) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Nov 2005 00:57:02 -0800 Received: from phys-epost-1 ([129.159.136.14]) by brmea-mail-3.sun.com (8.12.10/8.12.9) with ESMTP id jA78uk3F027877 for ; Mon, 7 Nov 2005 01:56:47 -0700 (MST) Received: from conversion-daemon.epost-mail1.sweden.sun.com by epost-mail1.sweden.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) id <0IPK00901TYPTX@epost-mail1.sweden.sun.com> (original mail from Bernt.Johnsen@Sun.COM) for derby-dev@db.apache.org; Mon, 07 Nov 2005 09:56:46 +0100 (MET) Received: from localhost (atum01.Norway.Sun.COM [129.159.112.201]) by epost-mail1.sweden.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) with ESMTP id <0IPK00A3ZU6L9S@epost-mail1.sweden.sun.com> for derby-dev@db.apache.org; Mon, 07 Nov 2005 09:56:45 +0100 (MET) Date: Mon, 07 Nov 2005 09:56:45 +0100 From: "Bernt M. Johnsen" Subject: Re: [jira] Updated: (DERBY-231) "FOR UPDATE" required for updatable result set to work In-reply-to: <436BA88E.1020903@debrunners.com> To: derby-dev@db.apache.org Message-id: <20051107085645.GB7076@atum01.norway.sun.com> Organization: Sun Microsystems MIME-version: 1.0 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=nVMJ2NtxeReIH9PS Content-disposition: inline User-Agent: Mutt/1.5.10i References: <1423548905.1113999264585.JavaMail.jira@ajax.apache.org> <1821373379.1130947796422.JavaMail.jira@ajax.apache.org> <20051103001306.GB5919@barbar.sun.com> <436951E6.7000701@debrunners.com> <436A1825.2000708@sun.com> <436A5A76.2000706@debrunners.com> <20051103223528.GA6087@barbar.sun.com> <436AD2E6.9070108@debrunners.com> <20051104091550.GB21210@atum01.norway.sun.com> <436BA88E.1020903@debrunners.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --nVMJ2NtxeReIH9PS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable >>>>>>>>>>>> Daniel John Debrunner wrote (2005-11-04 10:29:34): > That's the leap of faith I have trouble with. The assumption that the > read only of the result set means read only status of the SQL query. >=20 > I see the ResultSet.CONCUR_READ_ONLY only applying to the client side > ResultSet, because that's what it is declared to mean. >=20 > public static final int CONCUR_READ_ONLY >=20 > The constant indicating the concurrency mode for a ResultSet object > that may NOT be updated. >=20 > And we have instances where we know the ResultSet being read only does > not make the SQL query read only, when the select includes the FOR > UPDATE. I would claim that the statement above implies that CONCUR_UPDATABLE also only applies to the client side, and thus "FOR UPDATE" should be required to be able to update the underlying table. And that's not what we want (and not what this patch is implementing). I believe that one has to view ResultSets in the context of an SQL cursor to make sense of this. Updatability, holdability and scrollability are issues only in a cursor context in the SQL standards. Well, "Leap of faith" is maybe a good description of this discussion which is becoming kind of philosophical. Perhaps we should continue this discussion over a beer at ApacheCon? --=20 Bernt Marius Johnsen, Database Technology Group,=20 Sun Microsystems, Trondheim, Norway --nVMJ2NtxeReIH9PS Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFDbxbNlFBD9TXBAPARAoTvAKDT25lGmak1GD1/itijCBLdrldUIACeOkbe zUoser3dAnEKCu+FdBOlISg= =aK0f -----END PGP SIGNATURE----- --nVMJ2NtxeReIH9PS--