Re: Problem creating trigger-function with arguments (8.0rc4)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Problem creating trigger-function with arguments (8.0rc4)
Дата
Msg-id 29386.1105131135@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Problem creating trigger-function with arguments (8.0rc4)  ("Florian G. Pflug" <fgp@phlo.org>)
Ответы unsubscribe  ("Astha Raj" <astha@tryarc.com>)
Re: Problem creating trigger-function with arguments (8.0rc4)  (David Fetter <david@fetter.org>)
Список pgsql-general
"Florian G. Pflug" <fgp@phlo.org> writes:
> This is what I tried:

> CREATE OR REPLACE FUNCTION functions.t_insert_deny(v_message text)
> RETURNS "trigger" AS $$

There should probably be a specific error check telling you that a
trigger function can't take any explicit arguments.  But there isn't
(and it's too late for 8.0 because we froze error message strings
long since :-().

The CREATE TRIGGER parameter comes to the trigger function via TGARGS,
not as a regular parameter.

            regards, tom lane

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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: Problem creating trigger-function with arguments (8.0rc4)
Следующее
От: Ragnar Hafstað
Дата:
Сообщение: Re: need help Connect failure in an applet