Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 51707 invoked from network); 11 Nov 2005 16:37:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Nov 2005 16:37:29 -0000 Received: (qmail 45721 invoked by uid 500); 11 Nov 2005 16:37:28 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 45686 invoked by uid 500); 11 Nov 2005 16:37:28 -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 45677 invoked by uid 99); 11 Nov 2005 16:37:28 -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, 11 Nov 2005 08:37:25 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 345B8126 for ; Fri, 11 Nov 2005 17:37:04 +0100 (CET) Message-ID: <842841877.1131727024212.JavaMail.jira@ajax.apache.org> Date: Fri, 11 Nov 2005 17:37:04 +0100 (CET) From: "Bernt M. Johnsen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Resolved: (DERBY-231) "FOR UPDATE" required for updatable result set to work In-Reply-To: <1423548905.1113999264585.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-231?page=all ] Bernt M. Johnsen resolved DERBY-231: ------------------------------------ Fix Version: 10.2.0.0 Resolution: Fixed > "FOR UPDATE" required for updatable result set to work > ------------------------------------------------------ > > Key: DERBY-231 > URL: http://issues.apache.org/jira/browse/DERBY-231 > Project: Derby > Type: Improvement > Components: SQL > Versions: 10.0.2.1 > Reporter: Dag H. Wanvik > Assignee: Andreas Korneliussen > Priority: Minor > Fix For: 10.2.0.0 > Attachments: DERBY-231.diff, DERBY-231.stat, fff > > To get an updatable result set, the JDBC 3.0 spec, section 14.2.4 > "Modifying ResultSet Objects" states: > "ResultSet objects with concurrency CONCUR_UPDATABLE can be updated > using ResultSet objects". > In addition, Derby requires the SQL SELECT statement to have a "FOR > UPDATE" clause for updates to be allowed. This may be a usability issue, as > many examples, e.g. in "JDBC API tutorial and reference and reference" > book and the JDBC 3.0 Specification (14.2.4.1) do not include a "FOR > UPDATE" clause in the SQL SELECT. > Mamta Satoor says: > "Derby implements the JDBC updatable resultset by using the existing > updatable cursor implementation. And in order to do that, it requires > that the SELECT statement should include the FOR UPDATE clause. One > can change the Derby implementation so that it does not require FOR > UPDATE clause to piggyback on updatable cursor implementation." > Dan DeBrunner says: > "Technically I wonder if this is covered by the JDBC standard, I see > nothing in the JDBC 3.0 that states any requirements for the SQL > statement for an updateable result set. I know the JDBC tutorial book > has some guidelines as to what will typically work, but isn't it up to > the database engine to define what works here? > Having said that I think that not requiring the FOR UPDATE would be a > useful improvement." -- 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