Re: BUG #13336: Unexpected result from invalid query

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: BUG #13336: Unexpected result from invalid query
Дата
Msg-id 20150523001227.GA32396@alap3.anarazel.de
обсуждение исходный текст
Ответ на BUG #13336: Unexpected result from invalid query  (chris@chrullrich.net)
Ответы Re: BUG #13336: Unexpected result from invalid query  (Christian Ullrich <chris@chrullrich.net>)
Список pgsql-bugs
Hi,

On 2015-05-23 00:05:27 +0000, chris@chrullrich.net wrote:
> -- Note: No column "foo" in test_table2
> postgres=# select * from test_table where foo in (select foo from
> test_table2);
>  foo | bar
> -----+-----
>  one |   1
>  two |   2

That's not a bug. In a good number of subqueries you need access fields
from the surrounding query.

Greetings,

Andres Freund

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

Предыдущее
От: Christian Ullrich
Дата:
Сообщение: Re: BUG #13336: Unexpected result from invalid query
Следующее
От: Christian Ullrich
Дата:
Сообщение: Re: BUG #13336: Unexpected result from invalid query