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 3765110A36 for ; Thu, 26 Sep 2013 09:32:07 +0000 (UTC) Received: (qmail 89844 invoked by uid 500); 26 Sep 2013 09:32:06 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 89806 invoked by uid 500); 26 Sep 2013 09:32:05 -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 89789 invoked by uid 99); 26 Sep 2013 09:32:03 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Sep 2013 09:32:03 +0000 Date: Thu, 26 Sep 2013 09:32:03 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DERBY-6351) Syntax error on equal transition table name and correlation name in statement trigger 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-6351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13778603#comment-13778603 ] ASF subversion and git services commented on DERBY-6351: -------------------------------------------------------- Commit 1526429 from [~knutanders] in branch 'code/branches/10.10' [ https://svn.apache.org/r1526429 ] DERBY-6351: Syntax error on equal transition table name and correlation name in statement trigger Merged revision 1526406 from trunk. > Syntax error on equal transition table name and correlation name in statement trigger > ------------------------------------------------------------------------------------- > > Key: DERBY-6351 > URL: https://issues.apache.org/jira/browse/DERBY-6351 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.4.1.3, 10.5.1.1, 10.6.1.0, 10.7.1.1, 10.8.1.2, 10.9.1.0, 10.10.1.1 > Reporter: Knut Anders Hatlen > Assignee: Knut Anders Hatlen > Priority: Minor > Attachments: d6351-1a.diff > > > If a reference to a transition table in a statement trigger has a correlation name, and that correlation name is equal to the name of the transition table, the CREATE TRIGGER statement fails with a syntax error. > To reproduce: > {noformat} > ij version 10.10 > ij> connect 'jdbc:derby:db;create=true'; > ij> create table t1(x int); > 0 rows inserted/updated/deleted > ij> create table t2(x int); > 0 rows inserted/updated/deleted > ij> create trigger tr1 after insert on t1 referencing new table as n insert into t2 select x from n as n; > ERROR 42X01: Syntax error: Encountered "as" at line 1, column 89. > Issue the 'help' command for general information on IJ command syntax. > Any unrecognized commands are treated as potential SQL commands and executed directly. > Consult your DBMS server reference documentation for details of the SQL syntax supported by your server. > {noformat} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira