Re: missing FROM-clause notice but nothing is missing ...

From: Jean-Christian Imbeault <jc(at)mega-bucks(dot)co(dot)jp>
To: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: missing FROM-clause notice but nothing is missing ...
Date: 2003-03-28 05:28:48
Message-ID: 3E83DD90.7050609@mega-bucks.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Stephan Szabo wrote:
>
> I think this is because by the time you get to the order by, products and
> rel_cast_crew_movies are treated as being out of scope. The column
> produced by the union is just named "id" I think.

You're right. changing the ORDER by products.id to simply ORDER by id
solved the problem ...

I don't know much about SQL scoping but I would have hoped that a UNION
could have kept the fully-qualified column names (i.e. products.id
instead of simply ID).

Jc

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Lincoln Yeoh 2003-03-28 05:37:36 Re: Solution to UPDATE...INSERT problem
Previous Message Stephan Szabo 2003-03-28 05:27:23 Re: missing FROM-clause notice but nothing is missing ...