Re: forcing a literal value in a column

Поиск
Список
Период
Сортировка
От Karsten Hilbert
Тема Re: forcing a literal value in a column
Дата
Msg-id 20030513170103.Z564@hermes.hilbert.loc
обсуждение исходный текст
Ответ на Re: forcing a literal value in a column  (Karsten Hilbert <Karsten.Hilbert@gmx.net>)
Список pgsql-general
> in my audited tables I do this:
>  modify_when time stamp with time zone not null default CURRENT_TIMESTAMP check(modify_when=now()),
>
> This works on insert. However, on update a function runs
> via a trigger but fails with:
>  ExecReplace: rejected due to CHECK constraint audit_mark_modify_when

> Any help is appreciated. This is on 7.1.3 (I know that's
> rather old).
Never mind since it's still the old mistake with the check
constraint.

Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346


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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Creating functions and triggers
Следующее
От: nolan@celery.tssi.com
Дата:
Сообщение: Re: Creating functions and triggers