Return-Path: Delivered-To: apmail-cayenne-commits-archive@www.apache.org Received: (qmail 427 invoked from network); 29 Jun 2009 15:13:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Jun 2009 15:13:07 -0000 Received: (qmail 83884 invoked by uid 500); 29 Jun 2009 15:13:18 -0000 Delivered-To: apmail-cayenne-commits-archive@cayenne.apache.org Received: (qmail 83859 invoked by uid 500); 29 Jun 2009 15:13:18 -0000 Mailing-List: contact commits-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list commits@cayenne.apache.org Received: (qmail 83847 invoked by uid 99); 29 Jun 2009 15:13:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jun 2009 15:13:18 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jun 2009 15:13:08 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 349AC234C044 for ; Mon, 29 Jun 2009 08:12:47 -0700 (PDT) Message-ID: <1995200123.1246288367187.JavaMail.jira@brutus> Date: Mon, 29 Jun 2009 08:12:47 -0700 (PDT) From: "Bryan Lewis (JIRA)" To: commits@cayenne.apache.org Subject: [jira] Created: (CAY-1247) Query SQL syntax with join and OR on Oracle8 (and maybe OpenBase) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Query SQL syntax with join and OR on Oracle8 (and maybe OpenBase) ----------------------------------------------------------------- Key: CAY-1247 URL: https://issues.apache.org/jira/browse/CAY-1247 Project: Cayenne Issue Type: Bug Components: Cayenne Core Library Affects Versions: 3.0M6 Environment: Oracle 8 Reporter: Bryan Lewis Priority: Minor See the thread at http://news.gmane.org/gmane.comp.java.cayenne.user/11127. The Oracle8 adapter produces legacy syntax for joins. We found that queries that involve both a join and an orExp produce SQL with insufficient parentheses. It appears that Oracle applies the OR to the join clause and fetches the entire table. Cayenne2 supplied an extra pair of parentheses to avoid this. I've fixed the code for our purposes (will append in a moment). Perhaps this will be an issue on OpenBase too, since they use the same legacy join code. Or maybe Openbase will handle the ungrouped AND's and OR's more intelligently. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.