Re: inconsistency in aliasing

From: "dbalinglung" <alamsurya(at)centrin(dot)net(dot)id>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Re: inconsistency in aliasing
Date: 2009-01-14 11:31:55
Message-ID: C33CB97C7C624D558CFE18559248A623@alam
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

what for of the syntax command +1 on order by ? maybe just wrong to given result about the error query on order by, it's BUG ?

dbalinglung

DataproSoft Developer

----- Original Message -----
From: "Louis-David Mitterrand" <vindex+lists-pgsql-general(at)apartia(dot)org>
To: <pgsql-general(at)postgresql(dot)org>
Sent: Wednesday, January 14, 2009 5:46 PM
Subject: [GENERAL] inconsistency in aliasing

> Hi,
>
> This works:
>
> critik=# select current_timestamp::abstime::int4 as score order by score;
>
> This doesn't:
>
> critik=# select current_timestamp::abstime::int4 as score order by score + 1;
> ERROR: column "score" does not exist
> LINE 1: ...urrent_timestamp::abstime::int4 as score order by score + 1 ...
>
> Any idea ?
>
> Thanks,
>
> --
> http://www.critikart.net
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Louis-David Mitterrand 2009-01-14 11:34:06 Re: inconsistency in aliasing
Previous Message Louis-David Mitterrand 2009-01-14 11:27:48 Re: inconsistency in aliasing

Browse pgsql-hackers by date

  From Date Subject
Next Message Louis-David Mitterrand 2009-01-14 11:34:06 Re: inconsistency in aliasing
Previous Message Louis-David Mitterrand 2009-01-14 11:27:48 Re: inconsistency in aliasing