Re: Window function trouble - Mailing list pgsql-sql

From Tom Lane
Subject Re: Window function trouble
Date
Msg-id 25983.1260468559@sss.pgh.pa.us
Whole thread Raw
In response to Re: Window function trouble  (Harald Fuchs <hari.fuchs@gmail.com>)
List 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 by date:

Previous
From: Harald Fuchs
Date:
Subject: Re: Window function trouble
Next
From: Harald Fuchs
Date:
Subject: Re: Window function trouble