Re: alias not applied

From: Frank Bax <fbax(at)sympatico(dot)ca>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: alias not applied
Date: 2007-02-09 16:19:58
Message-ID: 5.2.1.1.0.20070209111848.00a70ec0@pop6.sympatico.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

At 11:04 AM 2/9/07, Sabin Coanda wrote:
>I have two queries:
>
>1. SELECT i AS "PK_ID", d AS "Deleted" FROM ( SELECT 52 AS i, true AS d ) x
>ORDER BY i
>2. SELECT i AS "PK_ID", d AS "Deleted" FROM ( SELECT 49 AS i, true AS d
>UNION SELECT 51 AS i, true AS d ) x ORDER BY i
>
>The first returns the columns "PK_ID", "Deleted"
>The second returns the columns i, d.
>
>Why ?

perhaps you are running an old version - both queries produce the same
column names on my 8.2.1 system.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2007-02-09 16:25:40 Re: alias not applied
Previous Message Sabin Coanda 2007-02-09 16:04:17 alias not applied