Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 19450 invoked from network); 29 Jun 2010 21:21:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Jun 2010 21:21:15 -0000 Received: (qmail 25988 invoked by uid 500); 29 Jun 2010 21:21:15 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 25968 invoked by uid 500); 29 Jun 2010 21:21:14 -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 25961 invoked by uid 99); 29 Jun 2010 21:21:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jun 2010 21:21:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jun 2010 21:21:12 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5TLKo7r006186 for ; Tue, 29 Jun 2010 21:20:50 GMT Message-ID: <24576728.123501277846450767.JavaMail.jira@thor> Date: Tue, 29 Jun 2010 17:20:50 -0400 (EDT) From: "Mike Matrigali (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-4559) Propagate update to generated columns on cursors even if they are not explicitly marked "for update" In-Reply-To: <695573838.413391266693634577.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-4559?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mike Matrigali updated DERBY-4559: ---------------------------------- Component/s: SQL > Propagate update to generated columns on cursors even if they are not explicitly marked "for update" > ---------------------------------------------------------------------------------------------------- > > Key: DERBY-4559 > URL: https://issues.apache.org/jira/browse/DERBY-4559 > Project: Derby > Issue Type: Bug > Components: SQL > Reporter: Sylvain Leroux > > Currently, updating a cursor's column marked FOR UPDATE will fail if there is a generated column based on it which is not marked FOR UPDATE. > ij> create table T(col1 int, col2 int, col3 generated always as (col1+col2)); > ij> insert into t(col1,col2) values (1,2),(3,4); > 2 rows inserted/updated/deleted > ij> get cursor c as 'SELECT COL1 FROM T FOR UPDATE OF COL1'; > ij> next c; > COL1 > ----------- > 1 > ij> update t set col1 = 5 where current of c; > ERROR 42X31: Column 'COL3' is not in the FOR UPDATE list of cursor 'C'. > See http://old.nabble.com/Updatable-cursors-and-generated-columns-td27637931.html -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.