Re: Immutable attributes?

Поиск
Список
Период
Сортировка
От Stephane Bortzmeyer
Тема Re: Immutable attributes?
Дата
Msg-id 20050426135451.GA31623@nic.fr
обсуждение исходный текст
Ответ на Re: Immutable attributes?  (Mario Soto Cordones <msotocl@gmail.com>)
Список pgsql-general
On Tue, Apr 26, 2005 at 09:49:05AM -0400,
 Mario Soto Cordones <msotocl@gmail.com> wrote
 a message of 45 lines which said:

> Hi for all ,  plese a question ,this function can be write in pl/pgsql ???????

I do not understand, it IS pl/pgsql.

> > CREATE OR REPLACE FUNCTION check_immutable() RETURNS TRIGGER
> >     AS 'BEGIN
> >               IF NEW.id != OLD.id OR NEW.created != OLD.created THEN
> >                    RAISE EXCEPTION ''Change not allowed in that table'';
> >               END IF;
> >               RETURN NEW;
> >         END;'
> >     LANGUAGE PLPGSQL;

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

Предыдущее
От: Mario Soto Cordones
Дата:
Сообщение: Re: Immutable attributes?
Следующее
От: Richard_D_Levine@raytheon.com
Дата:
Сообщение: Re: UltraSPARC versus AMD