Re: Trigger.. AFTER and BEFORE with specific column changed

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: Trigger.. AFTER and BEFORE with specific column changed
Дата
Msg-id 4F79AA03.9050501@gmail.com
обсуждение исходный текст
Ответ на Re: Trigger.. AFTER and BEFORE with specific column changed  (Albert <oo_O2_oo@hotmail.com>)
Список pgsql-general
On 04/01/2012 10:10 PM, Albert wrote:
> *i get:*
>
> Syntax error at or near 'WHEN'
> LINE 1: ... check_update AFTER UPDATE ON accounts FOR EACH ROW WHEN
> (OLD.balance IS DISTINCT FROM NEW.balance) ....

Hmmm. So two questions:

What happens if you copy the example in the docs exactly and use NEW.*
and OLD.*?

What is the table definition for accounts?

>
> --
> View this message in context:
http://postgresql.1045698.n5.nabble.com/Trigger-AFTER-and-BEFORE-with-specific-column-changed-tp5610712p5611501.html
> Sent from the PostgreSQL - general mailing list archive at Nabble.com.
>


--
Adrian Klaver
adrian.klaver@gmail.com

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

Предыдущее
От: Mike Roest
Дата:
Сообщение: Re: [HACKERS] Re: pg_dump incredibly slow dumping a single schema from a large db
Следующее
От: Yvon Thoraval
Дата:
Сообщение: Mac OS X Lion how to connect to remote server ?