Re: wierd AND condition evaluation for plpgsql

Поиск
Список
Период
Сортировка
От Alessio Bragadini
Тема Re: wierd AND condition evaluation for plpgsql
Дата
Msg-id 1022763862.3447.6658.camel@iris
обсуждение исходный текст
Ответ на Re: wierd AND condition evaluation for plpgsql  ("Joel Burton" <joel@joelburton.com>)
Ответы Re: wierd AND condition evaluation for plpgsql  ("Joel Burton" <joel@joelburton.com>)
Список pgsql-hackers
On Tue, 2002-05-28 at 16:09, Joel Burton wrote:

> Actually, at least in some cases, PG does short-circuit logic:

> joel@joel=# select false and seeme();

> joel@joel=# select true and seeme();

If seeme() returns NULL, shouldn't both SELECTs return NULL, and
therefore not be short-circuit-able?

Sorry, I am a little confused.

-- 
Alessio F. Bragadini        alessio@albourne.com
APL Financial Services        http://village.albourne.com
Nicosia, Cyprus             phone: +357-22-755750

"It is more complicated than you think"    -- The Eighth Networking Truth from RFC 1925



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

Предыдущее
От: Andrew Sullivan
Дата:
Сообщение: Re: Replication status
Следующее
От: "Joel Burton"
Дата:
Сообщение: Re: wierd AND condition evaluation for plpgsql