Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-sql by date

Next:From: Joseph ShraibmanDate: 2000-05-24 23:21:35
Subject: Re: possible bug with group by?
Previous:From: Stephan SzaboDate: 2000-05-24 23:16:06
Subject: Re: possible bug with group by?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group