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

possible bug with group by?

From: Joseph Shraibman <jks(at)selectacast(dot)net>
To: "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org>
Subject: possible bug with group by?
Date: 2000-05-24 22:30:49
Message-ID: 392C5819.2FD488A8@selectacast.net (view raw or flat)
Thread:
Lists: pgsql-sql
Is this a bug or am I just misunderstanding something?

playpen=> create table tablea ( a int,b int , c int );
CREATE
playpen=> insert into tablea(a, b) values (1 ,2);
INSERT 28299 1
playpen=> insert into tablea(a, b, c) values (2 ,3, 4);
INSERT 28300 1
playpen=> select a, b, case when c is null then 'not set' else 'set' end
as z from tablea;
a|b|z
-+-+-------
1|2|not set
2|3|set
(2 rows)


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=>


Responses

pgsql-sql by date

Next:From: Patrick WelcheDate: 2000-05-24 22:40:57
Subject: Re: [HACKERS]
Previous:From: Jan WieckDate: 2000-05-24 21:04:06
Subject: Re: Why is PostgreSQL 7.0 SQL semantics different from Oracle's?

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