Re: Window function trouble

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Window function trouble
Дата
Msg-id 25983.1260468559@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Window function trouble  (Harald Fuchs <hari.fuchs@gmail.com>)
Список pgsql-sql
Harald Fuchs <hari.fuchs@gmail.com> writes:
> Apparently the CASE expression is named "adr" unless named
> otherwise, and the result set is sorted by this expression instead of
> the column named "adr".  Does anyone know what the SQL standard says
> about that?

The SQL standard says the default name for any output column other
than a simple column reference is implementation-dependent.  I think
our implementation involves looking at the default value for a CASE.
        regards, tom lane


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

Предыдущее
От: Harald Fuchs
Дата:
Сообщение: Re: Window function trouble
Следующее
От: Harald Fuchs
Дата:
Сообщение: Re: Window function trouble