"OLD used in query that is not in a rule"

Поиск
Список
Период
Сортировка
От Gauthier, Dave
Тема "OLD used in query that is not in a rule"
Дата
Msg-id 0AD01C53605506449BA127FB8B99E5E10C3596C7@FMSMSX105.amr.corp.intel.com
обсуждение исходный текст
Ответы Re: "OLD used in query that is not in a rule"  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general

I get... "OLD used in query that is not in a rule" when trying to ref, for example, OLD.tblcol1, from inside a stored procedure.  Is this saying you cannot use OLD.* (or NEW.* I suppose) unless it's from within a trigger function (returns type "trigger")?

 

If so, is there some way to tap this info given that the stored procedure is running as part of a check constraint definition? 

 

Thanks for any help.

 

 

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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: loading a function from a file
Следующее
От: Tom Lane
Дата:
Сообщение: Re: "OLD used in query that is not in a rule"