Re: Triggers do not fire

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Triggers do not fire
Дата
Msg-id Pine.BSF.4.21.0110161301270.17549-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Triggers do not fire  (Reiner Dassing <dassing@wettzell.ifag.de>)
Список pgsql-sql
> The result is as follows:
> INSERT INTO test VALUES(1,'2000-10-11 12:00:00',-20.2);
> NOTICE:  Fired INSERT
> INSERT 0 0
> UPDATE test SET value = 1000.0 WHERE epoch = '2000-10-11 12:10:00'  AND
> sensor_id = 1;
> UPDATE 0
> 
> The insert notice can be shown!
> The update notice is not there!
> 
> Why?

My guess...
Because there are no rows the update matches?  By returning NULL, you
are aborting the insert (see INSERT 0 0) and thus there are no rows for
the update to do so no triggers are run.



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

Предыдущее
От: "Frank Zhu"
Дата:
Сообщение: Text/Image, JSP tomcat. How can I operate the text and image type field in Postgresql? only in java/jsp
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: index problem