Re: BUG ? or SQL miss understanding ? - Mailing list pgsql-general

From Manfred Koizar
Subject Re: BUG ? or SQL miss understanding ?
Date
Msg-id oofe909v1ahh4f66qf2fui23nijpdd56qv@email.aon.at
Whole thread Raw
In response to BUG ? or SQL miss understanding ?  ("Bogdan Vatkov" <bvatkov@globaltech-bg.com>)
Responses Re: BUG ? or SQL miss understanding ?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Wed, 28 Apr 2004 12:33:15 +0300, "Bogdan Vatkov"
<bvatkov@globaltech-bg.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

pgsql-general by date:

Previous
From: BRINER Cedric
Date:
Subject: pgsql documentation error ?
Next
From: BRINER Cedric
Date:
Subject: create synopsis wrong ?