Re: We are not following the spec for HAVING without GROUP BY

From: Jaime Casanova <systemguards(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: We are not following the spec for HAVING without GROUP BY
Date: 2005-03-10 20:14:23
Message-ID: c2d9e70e05031012143fddf4c1@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

On Thu, 10 Mar 2005 12:44:50 -0500, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Would those of you with access to other DBMSes try this:
>
On informix 9.21.UC4

> create table tab (col integer);
> select 1 from tab having 1=0;
>
returns no rows

> select 1 from tab having 1=1;
>
returns no rows

> insert into tab values(1);
> insert into tab values(2);
> select 1 from tab having 1=0;
>
returns no rows

> select 1 from tab having 1=1;
>
returns 2 rows

regards,
Jaime Casanova

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Mark Kirkwood 2005-03-10 21:37:13 Re: [HACKERS] We are not following the spec for HAVING without GROUP
Previous Message johnnnnnn 2005-03-10 20:01:28 Re: [HACKERS] We are not following the spec for HAVING without GROUP BY

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2005-03-10 21:19:33 Re: [pgsql-hackers-win32] [HACKERS] snprintf causes regression tests
Previous Message johnnnnnn 2005-03-10 20:01:28 Re: [HACKERS] We are not following the spec for HAVING without GROUP BY