Re: Re: Possible "off-topic"

Поиск
Список
Период
Сортировка
От Zachary Beane
Тема Re: Re: Possible "off-topic"
Дата
Msg-id 20010102111321.A11608@xach.com
обсуждение исходный текст
Ответ на Re: Possible "off-topic"  (François LODIER <zentak@agisphere.com>)
Список pgsql-general
On Tue, Jan 02, 2001 at 05:01:56PM +0100, François LODIER wrote:
> Hi all,
>
> happy new year ,
>
> sorry to disturb you but I am trying to create a trigger but it doesn't seems to be working.
>
> I have got a function called halloworld that takes one argument and I am trying to trigger it :
>
> so I write somethig like :
>
> CREATE TRIGGER helloworld_trigger AFTER INSERT
>     ON data FOR EACH ROW
>     EXECUTE PROCEDURE helloworld ( 'login' )
>
> As I have a field named login in the data table.
>
> and the response is :
>
> CreateTrigger: function helloworld() does not exist
>
> If any ne could help me it would be great.

When triggers are called, they are invoked with no arguments. The
arguments listed in the "create trigger" statement are placed in the
array TG_ARGV[], which can be referenced inside your procedure.

Zach
--
xach@xach.com     Zachary Beane     http://www.xach.com/

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

Предыдущее
От: François LODIER
Дата:
Сообщение: Re: Possible "off-topic"
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Two tables refenceing each other's columns