Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 85677 invoked from network); 28 Nov 2009 00:07:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Nov 2009 00:07:45 -0000 Received: (qmail 1050 invoked by uid 500); 28 Nov 2009 00:07:45 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 821 invoked by uid 500); 28 Nov 2009 00:07:44 -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 813 invoked by uid 99); 28 Nov 2009 00:07:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Nov 2009 00:07:44 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Nov 2009 00:07:42 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E5D31234C1F0 for ; Fri, 27 Nov 2009 16:07:20 -0800 (PST) Message-ID: <1673320449.1259366840939.JavaMail.jira@brutus> Date: Sat, 28 Nov 2009 00:07:20 +0000 (UTC) From: "Dag H. Wanvik (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-4442) Evaluation of default value and identity in an INSERT result set evaluated too early. In-Reply-To: <1591534517.1258132659683.JavaMail.jira@brutus> 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-4442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12783189#action_12783189 ] Dag H. Wanvik commented on DERBY-4442: -------------------------------------- Patch looks good to me; +1 to commit (before or after DERBY-4426, your call). > Evaluation of default value and identity in an INSERT result set evaluated too early. > ------------------------------------------------------------------------------------- > > Key: DERBY-4442 > URL: https://issues.apache.org/jira/browse/DERBY-4442 > Project: Derby > Issue Type: Bug > Components: SQL > Reporter: Dag H. Wanvik > Assignee: Knut Anders Hatlen > Attachments: always_prn.diff, d4442-1a.diff, d4442-1a.stat, d4442-1b.diff, insert.diff > > > In contrast to generated column, which are evaluated when the next row from the result set to be inserted, currently default values and identity columns are generated "early", that is as part of avaluating the subquery (SELECT or VALUES as the case may be). > This does not currently cause a user visible bug in Derby, but it lies behind DERBY-3 and the effect Bryan observed in DERBY-4. > Additionally, "early" computation has given rise to much special handling and ensuing bugs, cf. DERBY-1644, DERBY-4413, DERBY-4419, DERBY-4425 and others. > DERBY-4397 requires this fix for correct behaviour with INSERT. > See also > https://issues.apache.org/jira/browse/DERBY-4413?focusedCommentId=12769532&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_12769532 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.