inconsistency in aliasing - Mailing list pgsql-general

From Louis-David Mitterrand
Subject inconsistency in aliasing
Date
Msg-id 20090114104611.GA4168@apartia.fr
Whole thread Raw
Responses Re: inconsistency in aliasing
Re: inconsistency in aliasing
Re: inconsistency in aliasing
List pgsql-general
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

pgsql-general by date:

Previous
From: Reg Me Please
Date:
Subject: A better BETWEEN for DATEs, TIMEs and TIMESTAMPs?
Next
From: Reg Me Please
Date:
Subject: Re: inconsistency in aliasing