timestamp in trigger

Поиск
Список
Период
Сортировка
От Laurent Belmonte
Тема timestamp in trigger
Дата
Msg-id 1020098369.18701.13.camel@boa
обсуждение исходный текст
Список pgsql-bugs
In a ON UPDATE trigger on Toto table , i insert in a log a timestamp
like this


CREATE TABLE LogProtocole (
   logprotocole_id SERIAL,
   logprotocole_message text,
   logprotocole_date timestamp,
  CONSTRAINT pk_logprotocole PRIMARY KEY (logprotocole_id)

);


insert into logprotocole (
    logprotocole_message,logprotocole_date) select 'toto','now';

when i use it x time , the logprotocole_date take value from an old one.

( there is lot of triggers on Toto table : on insert,on delete,before
update ,after update )

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

Предыдущее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: Bug #650: LIKE command
Следующее
От: Bob Kenny
Дата:
Сообщение: LIKE Command