Re: Re[2]: [HACKERS] BUG ON HAVING CLAUSE

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Re[2]: [HACKERS] BUG ON HAVING CLAUSE
Дата
Msg-id 199812141509.KAA21956@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re[2]: [HACKERS] BUG ON HAVING CLAUSE  (Sferacarta Software <sferac@bo.nettuno.it>)
Список 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@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Bug report: PL/pgSQL and mixed case table/field names.
Следующее
От: Hannu Krosing
Дата:
Сообщение: Re: [HACKERS] 6.4.1 release