Return-Path: X-Original-To: apmail-oodt-commits-archive@www.apache.org Delivered-To: apmail-oodt-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E1351DFFB for ; Thu, 20 Dec 2012 18:47:13 +0000 (UTC) Received: (qmail 11410 invoked by uid 500); 20 Dec 2012 18:47:13 -0000 Delivered-To: apmail-oodt-commits-archive@oodt.apache.org Received: (qmail 11081 invoked by uid 500); 20 Dec 2012 18:47:13 -0000 Mailing-List: contact commits-help@oodt.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@oodt.apache.org Delivered-To: mailing list commits@oodt.apache.org Received: (qmail 11055 invoked by uid 99); 20 Dec 2012 18:47:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Dec 2012 18:47:13 +0000 Date: Thu, 20 Dec 2012 18:47:13 +0000 (UTC) From: "Michael Joyce (JIRA)" To: commits@oodt.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (OODT-546) XMLPS inner-joins default table with itself 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/OODT-546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13537248#comment-13537248 ] Michael Joyce commented on OODT-546: ------------------------------------ Perfect, thanks Chris. > XMLPS inner-joins default table with itself > ------------------------------------------- > > Key: OODT-546 > URL: https://issues.apache.org/jira/browse/OODT-546 > Project: OODT > Issue Type: Bug > Components: xmlps > Affects Versions: 0.5 > Reporter: Michael Joyce > Fix For: 0.6 > > Attachments: dump.sql, ps.xml > > > When the default table is set to an existing table name, XMLPS tries to inner join the default table with itself, resulting in a failed query. > Example > With the following ps.xml file > {code:xml} > name="CERC Query Handler" id="EDRN.CERC.CancerData"> > > > > > > > > > {code} > A query to > {noformat} > http://localhost:8080/web-grid/prod?q=RETURN%3DSTUDY_PARTICIPANT_ID > {noformat} > Results in the following: > {noformat} > WARNING: Error executing sql: [SELECT Cancer_Data.STUDY_PARTICIPANT_ID_SITE_TEXT as STUDY_PARTICIPANT_ID FROM Cancer_Data INNER JOIN Cancer_Data ON Cancer_Data.STUDY_PARTICIPANT_ID_SITE_TEXT = Cancer_Data.STUDY_PARTICIPANT_ID_SITE_TEXT ]: Message: Not unique table/alias: 'Cancer_Data' > {noformat} > If the default table is changed to "Participant_Data" then the query functions fine. -- 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