Re: Odd error in complex query (7.2): Sub-SELECT uses un-GROUPed...

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Odd error in complex query (7.2): Sub-SELECT uses un-GROUPed...
Дата
Msg-id 18176.1004403392@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Odd error in complex query (7.2): Sub-SELECT  (Philip Warner <pjw@rhyme.com.au>)
Список pgsql-hackers
Philip Warner <pjw@rhyme.com.au> writes:
> At 14:36 29/10/01 -0500, Tom Lane wrote:
>> The expanded-out equivalent of the problem query is
>> select (select t1.n from t1 where t1.f1 = s1.f1a) as a from s1
>> group by 1;
>> which I believe is indeed illegal.

> Dec/RDB ... allows the query
> It also allows:
>     select (select t1.n from t1 where t1.f1 = s1.f1a) as a from s1
>        group by (select t1.n from t1 where t1.f1 = s1.f1a);
> with the same plan. Which does not, on the face of it, seem illegal to me.

Hmm.  Maybe the query is legal, and the problem is just one of an
incorrect check for ungrouped vars in subselects.  Need to think more.
        regards, tom lane


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

Предыдущее
От: Philip Warner
Дата:
Сообщение: Re: Odd error in complex query (7.2): Sub-SELECT
Следующее
От: Tatsuo Ishii
Дата:
Сообщение: Re: Regression error on unixware 7 and open unix 8