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

From Julie Hunt
Subject Re: possible bug with group by?
Date
Msg-id 392C6046.E03F6DCF@chac.qld.edu.au
Whole thread Raw
In response to possible bug with group by?  (Joseph Shraibman <jks@selectacast.net>)
List pgsql-sql

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?

Regards
Julie



pgsql-sql by date:

Previous
From: "Ross J. Reedstrom"
Date:
Subject: Re: possible bug with group by?
Next
From: Ryan Bradetich
Date:
Subject: Use of index in 7.0 vs 6.5