Bug: aliasing in ORDER BY when UNIONing - Mailing list pgsql-hackers

From Marko Kreen
Subject Bug: aliasing in ORDER BY when UNIONing
Date
Msg-id 20010219025357.A3588@l-t.ee
Whole thread Raw
Responses Re: Bug: aliasing in ORDER BY when UNIONing  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
What works:

# select o.id from op o order by o.id;
# select o.id from op o union all SELECT -1 order by id;

Does not work:

# select o.id from op o union all SELECT -1 order by o.id;
ERROR:  Relation 'o' does not exist
# select o.id from op o union all SELECT -1 from op o order by o.id;
ERROR:  Relation 'o' does not exist


Running today's CVS.  (I finally converted my main workstation
to 7.1...)

-- 
marko



pgsql-hackers by date:

Previous
From: "Mitch Vincent"
Date:
Subject: PHP 4.0.4pl1 / Beta 5
Next
From: Tom Lane
Date:
Subject: Re: PHP 4.0.4pl1 / Beta 5