Re: possible bug with group by?

From: Joseph Shraibman <jks(at)selectacast(dot)net>
To: jhunt(at)chac(dot)qld(dot)edu(dot)au
Cc: "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: possible bug with group by?
Date: 2000-05-24 23:18:48
Message-ID: 392C6358.E6E23868@selectacast.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Julie Hunt wrote:
>
> Joseph Shraibman wrote:
>
> >
> >
> > playpen=> select a, b, case when c is null then 'not set' else 'set' end
> > as z from tablea group by a, b, z;
> > ERROR: Unable to identify an operator '<' for types 'unknown' and
> > 'unknown'
> > You will have to retype this query using an explicit cast
> > playpen=>
>
> Hi,
>
> should your group by be a, b, c not a, b, z?
>

That would work for this example. But shouldn't it work for z also?

I discovered that if I replace z with text I don't get that error, but
then I can't name my columns.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Joseph Shraibman 2000-05-24 23:21:35 Re: possible bug with group by?
Previous Message Stephan Szabo 2000-05-24 23:16:06 Re: possible bug with group by?