Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 17201 invoked from network); 9 Feb 2006 22:18:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Feb 2006 22:18:37 -0000 Received: (qmail 69473 invoked by uid 500); 9 Feb 2006 22:18:21 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 69225 invoked by uid 500); 9 Feb 2006 22:18:20 -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 69116 invoked by uid 99); 9 Feb 2006 22:18:19 -0000 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=SPF_FAIL,UPPERCASE_50_75 X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2006 14:18:19 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 21F6FDF for ; Thu, 9 Feb 2006 23:17:58 +0100 (CET) Message-ID: <600962034.1139523478136.JavaMail.jira@ajax.apache.org> Date: Thu, 9 Feb 2006 23:17:58 +0100 (CET) From: "Erik Bengtson (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-39) Strange error in JOIN ON clause In-Reply-To: <1434958542.1097490951278.JavaMail.apache@nagoya> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-39?page=comments#action_12365787 ] Erik Bengtson commented on DERBY-39: ------------------------------------ I tried in MS SQL and this is not supported there too > Strange error in JOIN ON clause > ------------------------------- > > Key: DERBY-39 > URL: http://issues.apache.org/jira/browse/DERBY-39 > Project: Derby > Type: Bug > Components: SQL, Newcomer > Versions: 10.0.2.0 > Reporter: Erik Bengtson > > The exception: > --------------------------------------- > Error: An ON clause associated with a JOIN operator is not valid. > --------------------------------------- > happens when I run the below SQL script: > --------------------------------------- > SELECT > THIS.DOSSIERTEMPLATE_ID > FROM DOSSIERTEMPLATE THIS, > ENTITLEMENT UNBOUND_ENTITLE > INNER JOIN > ENTITLEMENT II > ON UNBOUND_ENTITLE.ENTITLEMENT_ID = II.ENTITLEMENT_ID > INNER JOIN > DOSSIERTEMPLATERESOURCE BB > ON II.ENTITLED_TO_RESOURCE_ID_OID = BB.DOSSIERTEMPLATERESOURCE_ID > INNER JOIN > I18N THIS_LABEL > ON THIS.LABEL_I18N_ID_OID = THIS_LABEL.I18N_ID > --------------------------------------- > It works fine if I run without the LABEL join > --------------------------------------- > SELECT > THIS.DOSSIERTEMPLATE_ID > FROM DOSSIERTEMPLATE THIS, > ENTITLEMENT UNBOUND_ENTITLE > INNER JOIN > ENTITLEMENT II > ON UNBOUND_ENTITLE.ENTITLEMENT_ID = II.ENTITLEMENT_ID > INNER JOIN > DOSSIERTEMPLATERESOURCE BB > ON II.ENTITLED_TO_RESOURCE_ID_OID = BB.DOSSIERTEMPLATERESOURCE_ID > --------------------------------------- > The column LABEL_I18N_ID_OID is BIGINT and has a FK to I18N_ID, which is BIGINT as well -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira