Re: Referencing a superselect's column by it's declared alias from a subselect fails

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Referencing a superselect's column by it's declared alias from a subselect fails
Дата
Msg-id 28845.1032102969@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Referencing a superselect's column by it's declared alias from a subselect fails  (Casey Allen Shobe <cshobe@secureworks.net>)
Список pgsql-bugs
Casey Allen Shobe <cshobe@secureworks.net> writes:
> In the following statement (which works), if I s/ps."usesysid"/"UID"/ in the
> two innermost subselects (such that it refers to the declared alias rather
> than the true column name), it fails.  In DB2, it works in similar
> situations.

I find that hard to believe.  If true, DB2 is broken.  An output-column
alias should not be visible in expressions for other output columns.
There are obvious circularity problems with allowing such a thing.

            regards, tom lane

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

Предыдущее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: Bug #768: Wrong special characters handling in Java
Следующее
От: Casey Allen Shobe
Дата:
Сообщение: Re: Postgres storing time in strange manner