| From: | Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> |
|---|---|
| To: | Reiner Dassing <dassing(at)wettzell(dot)ifag(dot)de> |
| Cc: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: Triggers do not fire |
| Date: | 2001-10-16 20:02:30 |
| Message-ID: | Pine.BSF.4.21.0110161301270.17549-100000@megazone23.bigpanda.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Stephan Szabo | 2001-10-16 20:05:14 | Re: index problem |
| Previous Message | Aasmund Midttun Godal | 2001-10-16 19:43:27 | Re: Triggers do not fire |