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 4EDFE10445 for ; Mon, 31 Mar 2014 17:25:30 +0000 (UTC) Received: (qmail 47929 invoked by uid 500); 31 Mar 2014 17:25:30 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 47553 invoked by uid 500); 31 Mar 2014 17:25:27 -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 46731 invoked by uid 99); 31 Mar 2014 17:25:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2014 17:25:21 +0000 Date: Mon, 31 Mar 2014 17:25:19 +0000 (UTC) From: "Rick Hillegas (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DERBY-6526) Document the MERGE statement MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-6526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13955411#comment-13955411 ] Rick Hillegas commented on DERBY-6526: -------------------------------------- Thanks for the patch, Kim. A couple comments: rrefkeywords29722: o MERGE and MATCHED are non-reserved keywords, so they should not appear in this list. o While I was in there, I discovered some other problems with this page: OVER and ROW_NUMBER are non-reserved too, so they shouldn't appear in this list CHARACTER_LENGTH and LEADING are reserved keywords which should appear in this list rrefsqljmerge o I see that the functional spec incorrectly describes the restrictions on identity and generated columns. I will update the spec to say this: INSERT column lists may not mention identity columns. In a VALUES clause, DEFAULT is the only value allowed for generated columns. On the right side of SET operators for UPDATE actions, DEFAULT is the only value allowed for generated and identity columns. o I think it would be good to state somewhere that the row count for a successful MERGE statement is the total number of rows inserted, updated, and deleted by the statement. Thanks -Rick > Document the MERGE statement > ---------------------------- > > Key: DERBY-6526 > URL: https://issues.apache.org/jira/browse/DERBY-6526 > Project: Derby > Issue Type: Improvement > Components: Documentation > Affects Versions: 10.11.0.0 > Reporter: Rick Hillegas > Assignee: Kim Haase > Attachments: DERBY-6526.diff, DERBY-6526.stat, DERBY-6526.zip > > > The MERGE statement is ready to be documented. Hopefully, the functional spec attached to DERBY-3155 is complete enough for this task. -- This message was sent by Atlassian JIRA (v6.2#6252)