From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Thomas Lockhart <lockhart(at)fourpalms(dot)org>, pgsql-bugs(at)postgresql(dot)org, Mark Jeacocke <mbj(at)ezytools(dot)com> |
Subject: | Re: PostgresSQL 7.1.3 not parsing SELECT portion of SQL correctly |
Date: | 2002-02-22 03:56:58 |
Message-ID: | 200202220356.g1M3uwB13356@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Is this a TODO item? Seems so. Comments?
---------------------------------------------------------------------------
Tom Lane wrote:
> "Mark Jeacocke" <mbj(at)ezytools(dot)com> writes:
> > select DISTINCT TABLEID, '' AS ALIAS from TABLE; :FAILS
>
> We get this type of complaint regularly. Perhaps DISTINCT should
> resolve unknown-type inputs to "text", much as we do with CASE
> and UNION constructs when we see an untyped literal. Thoughts?
>
> regards, tom lane
>
> PS: in the meantime, Mark, try casting the literal to text.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | pgsql-bugs | 2002-02-22 05:23:02 | Bug #599: ecpg does not parse correctly define and struct in the same file |
Previous Message | Justin Clift | 2002-02-22 03:41:32 | Re: Trying Cygwin version of PostgreSQL |