Re: Date of creation and of change

Поиск
Список
Период
Сортировка
От Andreas Tille
Тема Re: Date of creation and of change
Дата
Msg-id Pine.LNX.4.21.0008251501070.716-100000@wr-linux02.rki.de
обсуждение исходный текст
Ответ на Re: Re: Date of creation and of change  (hlefebvre <hlefebvre@lexbase.net>)
Ответы Re: Re: Date of creation and of change  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
On Fri, 25 Aug 2000, hlefebvre wrote:

> No I suppose that the problem is the identifier "changedat" is unknown.
> 
> You must probably prefix it : NEW.changedat
> 
>  CREATE FUNCTION changed_at_timestamp() RETURNS OPAQUE AS '
>      BEGIN
>          NEW.ChangedAt := timestamp(''now'');
>          RETURN NEW;
>      END;
>  ' LANGUAGE 'plpgsql';
> 
> I didn't test it, but as pgSQL looks like Oracle, it should be ok :-)
This avoids the error message, but doesn't have any effect to the value
of ChangedAt.  It just remains the same as CreatedAt :-(.

Kind regards
        Andreas.



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

Предыдущее
От: hlefebvre
Дата:
Сообщение: Re: Re: Date of creation and of change
Следующее
От: hlefebvre
Дата:
Сообщение: Re: Re: Date of creation and of change