Re: BUG #13501: Bug with subqueries in WHERE clause

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #13501: Bug with subqueries in WHERE clause
Дата
Msg-id 5211.1436974100@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #13501: Bug with subqueries in WHERE clause  (me@egidiocaprino.it)
Список pgsql-bugs
me@egidiocaprino.it writes:
> This query returns no record

> select *
> from merge.organization
> where school_id not in (select school_id from merge.account)
> or school_id not in (select school_id from merge.sd3_hierarchy)

This usually means that you've got NULLs in the school_id column.
NOT IN never returns true if there are any nulls in the sub-select result.
This is per SQL standard.

            regards, tom lane

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

Предыдущее
От: 田中 翔太
Дата:
Сообщение: 9.4.4 max_wal_sendersについて
Следующее
От: Andrew Gierth
Дата:
Сообщение: Re: [HACKERS] Grouping Sets: Fix unrecognized node type bug