Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id DC3A29FB1CA for ; Mon, 13 Nov 2006 00:48:33 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 64420-10 for ; Mon, 13 Nov 2006 04:48:27 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id 2CE259FA0B9 for ; Mon, 13 Nov 2006 00:48:25 -0400 (AST) Received: (qmail 7652 invoked from network); 13 Nov 2006 13:48:22 +0900 Received: from unknown (HELO ?100.0.32.170?) (100.0.32.170) by sd2.tpf-fw-c.co.jp with SMTP; 13 Nov 2006 13:48:22 +0900 Message-ID: <4557F916.1040306@tpf.co.jp> Date: Mon, 13 Nov 2006 13:48:22 +0900 From: Hiroshi Inoue User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: s.vanroye@easytowork.nl CC: pgsql-odbc@postgresql.org Subject: Re: Curious Join issue causing an E_FAIL error (with odbc References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/35 X-Sequence-Number: 8417 Stijn Vanroye wrote: > Hi List, > > I have experienced a strange issue today: when executing a query with a > 3-level join in it I got an E_FAIL error in my client software. I did > manage to "fix" it but I still find it strange. > > Suppose you have the following situation: > > there are three tables A,B and C (quite dumb names I know) > > and the following query: > > select > , > C.id > from > A > left join B on (A.fkB_id=B.id) > left join C on (b.fkC_id=C.id) > > The above query produces the error. Could you show me the whole code ? regards, Hiroshi Inoue