Re: Regarding select distinct ...query

From: Greg Stark <gsstark(at)mit(dot)edu>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Prachi Jain" <prachijain3(at)rediffmail(dot)com>, christoph(dot)dalitz(at)hs-niederrhein(dot)de, pgsql-general(at)postgresql(dot)org
Subject: Re: Regarding select distinct ...query
Date: 2002-12-18 22:20:11
Message-ID: 871y4f3r6s.fsf@stark.dyndns.tv
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:

> "Prachi Jain" <prachijain3(at)rediffmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message scott.marlowe 2002-12-18 22:21:50 Re: trouble caused by change in 7.3 handling of '' in
Previous Message scott.marlowe 2002-12-18 22:10:32 Re: Measuring CPU time use? (Another stupid question)