Re: BUG ? or SQL miss understanding ?

From: Manfred Koizar <mkoi-pg(at)aon(dot)at>
To: "Bogdan Vatkov" <bvatkov(at)globaltech-bg(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: BUG ? or SQL miss understanding ?
Date: 2004-05-04 07:09:33
Message-ID: oofe909v1ahh4f66qf2fui23nijpdd56qv@email.aon.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, 28 Apr 2004 12:33:15 +0300, "Bogdan Vatkov"
<bvatkov(at)globaltech-bg(dot)com> wrote:
>SQL error:
>ERROR: JOIN/ON clause refers to "vras_audio_records", which is not part of JOIN

In
SELECT ... FROM a, b LEFT JOIN c ON (a.id = ...)

the LEFT JOIN operator has higher precedence than the comma, so "a" is
not part of the JOIN. Better use ANSI syntax consistently:

SELECT ... FROM a INNER JOIN b ON (....)
LEFT JOIN c ON (....)

Servus
Manfred

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Karel Zak 2004-05-04 07:21:07 Re: C Functions, datatypes
Previous Message Sean Chittenden 2004-05-04 07:06:51 Re: [GENERAL] cache lookup of relation 165058647 failed