From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Richard Huxton <dev(at)archonet(dot)com> |
Cc: | pgsql <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: Error with DISTINCT and AS keywords |
Date: | 2002-07-10 14:09:17 |
Message-ID: | 16887.1026310157@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Richard Huxton <dev(at)archonet(dot)com> writes:
> Does anyone know what type a quoted literal has?
It's assigned the placeholder type UNKNOWN until the parser can figure
out from context what type it should be. Unfortunately in this case
there's no context the parser knows how to work with.
> It does strike me as a little
> unexpected that a quoted string doesn't default to text.
Yeah, I have a TODO item to let unknown be resolved to text when the
only available context is an ORDER BY (or equivalently DISTINCT)
request. I've looked at this a little bit but not figured out where
the cleanest place to do it is.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Jean-Luc Lachance | 2002-07-10 15:22:09 | Re: Error with DISTINCT and AS keywords |
Previous Message | Tom Lane | 2002-07-10 13:34:36 | Re: Help with function optimisation |