Re: possible bug with group by? - Mailing list pgsql-sql

From Joseph Shraibman
Subject Re: possible bug with group by?
Date
Msg-id 392C6358.E6E23868@selectacast.net
Whole thread Raw
In response to possible bug with group by?  (Joseph Shraibman <jks@selectacast.net>)
List 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.


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: possible bug with group by?
Next
From: Joseph Shraibman
Date:
Subject: Re: possible bug with group by?