Re: BUG #6209: Invalid subquery is accepted within a IN() clause

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: BUG #6209: Invalid subquery is accepted within a IN() clause
Дата
Msg-id 4E732D99.7050307@enterprisedb.com
обсуждение исходный текст
Ответ на BUG #6209: Invalid subquery is accepted within a IN() clause  ("Marc Mamin" <marc@intershop.de>)
Список pgsql-bugs
On 16.09.2011 12:59, Marc Mamin wrote:
> This is not valid, but is accepted.
>
>
> EXPLAIN analyze
> select * from test_f_files_steps where id in
> (select id from
>     (
>       select file_id,class_id from test_f_files_steps
>       EXCEPT
>       select id,class_id from test_f_files_status
>      )foo
> )

It is valid, it just doesn't do what you might expect. The "id" in
"select id from (..." refers to the id field in the outer query.

--
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com

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

Предыдущее
От: "Marc Mamin"
Дата:
Сообщение: BUG #6209: Invalid subquery is accepted within a IN() clause
Следующее
От: pratikchirania
Дата:
Сообщение: Timezone issues with Postrres