Re: inconsistency in aliasing

Поиск
Список
Период
Сортировка
От ludwig@kni-online.de
Тема Re: inconsistency in aliasing
Дата
Msg-id 2120557778.1009341.1231930923745.JavaMail.webmailer@webmail.1and1.com
обсуждение исходный текст
Ответ на inconsistency in aliasing  (Louis-David Mitterrand <vindex+lists-pgsql-general@apartia.org>)
Список pgsql-general
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 ...


В списке pgsql-general по дате отправления:

Предыдущее
От: "A. Kretschmer"
Дата:
Сообщение: Re: inconsistency in aliasing
Следующее
От: Louis-David Mitterrand
Дата:
Сообщение: Re: inconsistency in aliasing