Search Postgresql Archives

Re: inconsistency in aliasing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I don't know, if this is an inconsistence or a bug, but here a possible workaround:

select current_timestamp::abstime::int4 as score, current_timestamp::abstime::int4 + 1 as "score + 1" order by "score + 1";


Ludwig

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 ...



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux