Re: Window function trouble

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Harald Fuchs <hari(dot)fuchs(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Window function trouble
Date: 2009-12-10 18:09:19
Message-ID: 25983.1260468559@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Harald Fuchs <hari(dot)fuchs(at)gmail(dot)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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Harald Fuchs 2009-12-10 21:02:00 Re: Window function trouble
Previous Message Harald Fuchs 2009-12-10 17:49:57 Re: Window function trouble