Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 34273 invoked from network); 13 Jan 2010 12:14:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Jan 2010 12:14:46 -0000 Received: (qmail 26916 invoked by uid 500); 13 Jan 2010 12:14:46 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 26901 invoked by uid 500); 13 Jan 2010 12:14:46 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 26891 invoked by uid 99); 13 Jan 2010 12:14:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jan 2010 12:14:45 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [208.78.103.231] (HELO vorsha.objectstyle.org) (208.78.103.231) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 13 Jan 2010 12:14:38 +0000 Received: (qmail 8075 invoked from network); 13 Jan 2010 12:14:15 -0000 Received: from unknown (HELO ?IPv6:::1?) (127.0.0.1) by localhost with SMTP; 13 Jan 2010 12:14:15 -0000 Message-Id: From: Andrus Adamchik To: user@cayenne.apache.org In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: split expressions Date: Wed, 13 Jan 2010 14:14:13 +0200 References: <7C9958A1-DED5-4B03-8015-FCF8F75EAF9A@objectstyle.org> <4B4D90B3.6080106@maniatis.org> <24443385-F9ED-4C91-9C1F-8D8C4C162432@objectstyle.org> <4B4DA436.40808@maniatis.org> X-Mailer: Apple Mail (2.936) X-Virus-Checked: Checked by ClamAV on apache.org On Jan 13, 2010, at 2:02 PM, Andrus Adamchik wrote: > > paintings.exhibits.start > $date1 AND paintings.exhibits.name like > 'X%' > OR > paintings.exhibits.start < $date2 AND paintings.exhibits.name like > 'Y%' > OR > paintings.exhibits.start = $date3 AND paintings.exhibits.name like > 'Z%' > > here you can't describe the desired behavior with "|", but can with > aliases: > > a.start > $date1 AND a.name like 'X%' > OR > b.start < $date2 AND b.name like 'Y%' > OR > c.start = $date3 AND c.name like 'Z%' Wonder if that's a bad example though, as the intended result can be obtained without splits... Need to think of a better one. Although the idea is that there can be cases when exact control over joins is needed. Andrus