NEW Used in Non-Rule Query

Поиск
Список
Период
Сортировка
От Raymond
Тема NEW Used in Non-Rule Query
Дата
Msg-id 200307210636.20155.support@bigriverinfotech.com
обсуждение исходный текст
Список pgsql-general
Receive the following error in PL/pgSQL

    "Error: New Used in Non-Rule Query"

when attempting a comparison of NEW and OLD records in an update block:

     IF TG_OP = ''UPDATE'' THEN
          IF NEW != OLD THEN
               ...
               ...
          END IF;
     END IF;

How does one compare records for change in PL/pgSQL without resorting to a
attribute-by-attribute comparison?

Raymond




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

Предыдущее
От: Ron Johnson
Дата:
Сообщение: Re: database design of products catalogue
Следующее
От: u15074
Дата:
Сообщение: Re: Checkpoint question