Re: Empty Updates, ON UPDATE triggers and Rules

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: Empty Updates, ON UPDATE triggers and Rules
Дата
Msg-id 1249580317.9256.768.camel@jdavis
обсуждение исходный текст
Ответ на Re: Empty Updates, ON UPDATE triggers and Rules  (Merlin Moncure <mmoncure@gmail.com>)
Ответы Re: Empty Updates, ON UPDATE triggers and Rules
Re: Empty Updates, ON UPDATE triggers and Rules
Список pgsql-general
On Thu, 2009-08-06 at 13:15 -0400, Merlin Moncure wrote:
> in 8.4 you can (and should) do:
> WHERE old = new

I couldn't get that to work in a rule.

>   IF NEW != OLD THEN  -- 8.4 syntax

Does this work correctly in the case of NULLs? It looks like it does,
but that seems strange, because ROW(1, NULL) = ROW(1, NULL) evaluates to
NULL. Where is this documented?

Regards,
    Jeff Davis


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

Предыдущее
От: decibel
Дата:
Сообщение: Re: Constraint between 2 tables and taking a coherent snapshot of both
Следующее
От: "david.schruth"
Дата:
Сообщение: JOIN a UNION