function return value inside a trigger function

Поиск
Список
Период
Сортировка
От joao viegas
Тема function return value inside a trigger function
Дата
Msg-id 1348707360.12684.YahooMailNeo@web171203.mail.ir2.yahoo.com
обсуждение исходный текст
Ответы Re: function return value inside a trigger function  (Bosco Rama <postgres@boscorama.com>)
Re: function return value inside a trigger function  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hello Good Evening all,

does anybody knows how can I have something like:
select function_that_returns_int(NEW.field1) into NEW.field2;

i.e., getting a function output and assign it to a variable inside the trigger.

in a trigger function?
I'm always getting:
ERROR: SELECT query has no destination for result data

thanks in advance
jtv

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Odd Invalid type name error in postgresql 9.1
Следующее
От: Bosco Rama
Дата:
Сообщение: Re: function return value inside a trigger function