Re: order by is ambiguous

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Travel Jadoo <jadoo(at)xs4all(dot)nl>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: order by is ambiguous
Date: 2004-01-08 15:09:10
Message-ID: 6905.1073574550@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Travel Jadoo <jadoo(at)xs4all(dot)nl> writes:
> I could not find any discussion on this but imho this seems an erroneous
> error occuring now in 7.3.4 (after upgrade from 7.2.3):

> select null::time, 'test'::varchar as time order by time;
> ERROR: ORDER BY 'time' is ambiguous

What's erroneous about it? You have two output columns named 'time'.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sergey Olefir (edit e-mail to reply) 2004-01-08 15:18:57 Using indices with long unique IDs.
Previous Message Tom Lane 2004-01-08 15:01:20 Re: Optimize query: time of "single * IN(many)" > time of "many * IN(single)"