From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | sferac(at)bo(dot)nettuno(dot)it |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Re[2]: [HACKERS] BUG ON HAVING CLAUSE |
Date: | 1998-12-14 15:09:40 |
Message-ID: | 199812141509.KAA21956@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> Well, I tried IN-ANY-ALL on a subselect containing an HAVING clause
> like:
>
> select * from emp where ename in (
> select ename from emp group by ename having 1 < count(ename)
> );
>
> and I was thought that IN-ANY-ALL were buggy, then I tried this:
>
> select * from emp where ename IN (
> select ename from emp where deptno=20);
>
> and now I know the bug is only in the HAVING clause.
OK, that's good. We now have TODO item:
* subqueries containing HAVING return incorrect results
--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | geek+ | 1998-12-14 15:21:12 | Re: [HACKERS] Does this make sense: |
Previous Message | Bruce Momjian | 1998-12-14 15:01:37 | Re: [HACKERS] Bug report: PL/pgSQL and mixed case table/field names. |