From: Tom Lane <tgl@sss.pgh.pa.us>
To: Richard Huxton <dev@archonet.com>
Cc: pgsql <pgsql-sql@postgresql.org>
Subject: Re: Error with DISTINCT and AS keywords
Date: Wed, 10 Jul 2002 10:09:17 -0400
Message-ID: <16887.1026310157@sss.pgh.pa.us> (raw)
In-Reply-To: <200207101431.14115.dev@archonet.com>
References: <Pine.LNX.4.44.0207101525330.23339-100000@matrix.gatewaynet.com>
<200207101431.14115.dev@archonet.com>
Richard Huxton <dev@archonet.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, dev@archonet.com
Subject: Re: Error with DISTINCT and AS keywords
In-Reply-To: <16887.1026310157@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox