Problems with Triggers

Поиск
Список
Период
Сортировка
От Sebastian Böck
Тема Problems with Triggers
Дата
Msg-id 407E782A.7070909@freenet.de
обсуждение исходный текст
Ответы Re: Problems with Triggers  (Martin Marques <martin@bugs.unl.edu.ar>)
Re: Problems with Triggers  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Список pgsql-general
Hello,

is there a simple operator to determine whether the OLD.value and
NEW.value are different. The <> operator is not working on NULL's.

I need something like this:
NEW.val <> Old.val OR
NEW.val IS NULL AND OLD.val IS NOT NULL OR
NEW.val IS NOT NULL AND OLD.val IS NULL

Thanks in advance

Sebastian

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

Предыдущее
От: Alan Graham
Дата:
Сообщение: Anyone using pgreplicator?
Следующее
От: "Thomas Chille"
Дата:
Сообщение: PLpgSQL-Problem