Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BA30E10B6D for ; Mon, 10 Feb 2014 18:42:22 +0000 (UTC) Received: (qmail 62124 invoked by uid 500); 10 Feb 2014 18:42:22 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 62102 invoked by uid 500); 10 Feb 2014 18:42:22 -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 62070 invoked by uid 99); 10 Feb 2014 18:42:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Feb 2014 18:42:21 +0000 Date: Mon, 10 Feb 2014 18:42:21 +0000 (UTC) From: "Rick Hillegas (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DERBY-6476) Allow derived column lists in MERGE statements. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Rick Hillegas created DERBY-6476: ------------------------------------ Summary: Allow derived column lists in MERGE statements. Key: DERBY-6476 URL: https://issues.apache.org/jira/browse/DERBY-6476 Project: Derby Issue Type: Improvement Components: SQL Affects Versions: 10.11.0.0 Reporter: Rick Hillegas Priority: Minor Derby does not allow derived column lists aliased to the source or target tables in MERGE statement. So, the following statements are not allowed: {noformat} merge into t1_036 r( x ) using t2_036 on r.x = t2_036.a when matched then delete; merge into t1_036 using t2_036 r( x ) on t1_036.a = r.x when matched then delete; {noformat} Problems with these derived column lists were noted by Knut in a 2014-02-07 comment on DERBY-3155. -- This message was sent by Atlassian JIRA (v6.1.5#6160)