Re: Trigger function does not modify the NEW value

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: Trigger function does not modify the NEW value
Дата
Msg-id CAKJS1f_k6umFSAyKQd68YRM0-JF=CsAbZ-ALoCQjCp9WKCpcLg@mail.gmail.com
обсуждение исходный текст
Ответ на Trigger function does not modify the NEW value  ("Igal @ Lucee.org" <igal@lucee.org>)
Ответы Re: Trigger function does not modify the NEW value  ("Igal @ Lucee.org" <igal@lucee.org>)
Список pgsql-general
On Sat, 29 Jun 2019 at 14:54, Igal @ Lucee.org <igal@lucee.org> wrote:
>     create trigger tr_on_table_modified after insert or delete or update
>         on some_table for each row execute procedure on_table_modified();

> I can see in the output the notices with the expected values, but the value in the updated record is not
lower-cased.

You'll need a BEFORE trigger, not an AFTER trigger.
https://www.postgresql.org/docs/current/sql-createtrigger.html

-- 
 David Rowley                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services



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

Предыдущее
От: "Igal @ Lucee.org"
Дата:
Сообщение: Trigger function does not modify the NEW value
Следующее
От: "Igal @ Lucee.org"
Дата:
Сообщение: Re: Trigger function does not modify the NEW value