Re: [GENERAL] order by is ambiguous

2004-01-08 Thread Mike Nolan
> Hmm but the first one has actually no name, it's just casted as datatype > time. I now realise that casted columns get assigned the datatype as > name. Should it not show ?column? as output just like you a "select > null;" would do? i think you're confusing what the front end uses as a default

Re: [GENERAL] order by is ambiguous

2004-01-08 Thread Travel Jadoo
On Thu, 2004-01-08 at 16:09, Tom Lane wrote: > Travel Jadoo <[EMAIL PROTECTED]> 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; > > ERRO

Re: [GENERAL] order by is ambiguous

2004-01-08 Thread Tom Lane
Travel Jadoo <[EMAIL PROTECTED]> 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

[GENERAL] order by is ambiguous

2004-01-08 Thread Travel Jadoo
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 The solution is to name the time datatype e.g. select null::time as xy