Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 21008 invoked from network); 18 Feb 2008 23:03:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Feb 2008 23:03:47 -0000 Received: (qmail 53830 invoked by uid 500); 18 Feb 2008 23:03:41 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 53814 invoked by uid 500); 18 Feb 2008 23:03:41 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 53803 invoked by uid 99); 18 Feb 2008 23:03:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Feb 2008 15:03:41 -0800 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.9] (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 18 Feb 2008 23:03:03 +0000 Received: (qmail 20645 invoked by uid 1977); 18 Feb 2008 23:03:23 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 18 Feb 2008 23:03:23 -0000 Date: Mon, 18 Feb 2008 23:03:23 +0000 (UTC) From: Thomas Fischer To: Apache Torque Users List Subject: Re: How do I control the join type of doSelectJoin? In-Reply-To: <47B9CAFE.2030300@daimi.au.dk> Message-ID: <20080218225640.B14942@minotaur.apache.org> References: <47B9CAFE.2030300@daimi.au.dk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org > btw: I have newer understood the reason to use field joins at all. Can anyone > enlighten me on in which cases one would use a field join > instead of a inner join? > Hm, in most databases (e.g. mysql, oracle, postgresql) the thing you call "field join" is an inner join (just a different syntax) so you already got what you wanted. > The problem with field joins are that if you use more then one in a single > query you get duplicate rows in your result, This is not true in general. Could you give an example where this happens ? As for the answer in the headline: Currently the two ways I can think of to change the join type (e.g. to an outer join) is to duplicate the code do doSelectJoin with another join type manually; or you can manipulate the Torque templates. Thomas --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org