Re: Regarding select distinct ...query - Mailing list pgsql-general

From Greg Stark
Subject Re: Regarding select distinct ...query
Date
Msg-id 871y4f3r6s.fsf@stark.dyndns.tv
Whole thread Raw
In response to Re: Regarding select distinct ...query  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Regarding select distinct ...query
List pgsql-general
Tom Lane <tgl@sss.pgh.pa.us> writes:

> "Prachi Jain" <prachijain3@rediffmail.com> writes:
> > I have a select query with select distinct....this query is giving
> > me error as "unable to identify ordering operator '<' for type
> > 'unknown'"
>
> Try casting the '' to some specific datatype, like varchar or text.

I ran into precisely the same issue here yesterday. This works perfectly fine
in Oracle, does the standard really leave "select distinct 'foo'" undefined?

--
greg

pgsql-general by date:

Previous
From: Jessica Blank
Date:
Subject: OT: Measuring CPU time use? (Another stupid question)
Next
From: "scott.marlowe"
Date:
Subject: Re: trouble caused by change in 7.3 handling of '' in