Re: A bug in triggers PG 7.1.3 or misunderstand ?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: domingo(at)dad-it(dot)com (Domingo Alvarez Duarte)
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: A bug in triggers PG 7.1.3 or misunderstand ?
Date: 2001-09-27 16:32:53
Message-ID: 28856.1001608373@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I think you need "return old", not "return new", in the body of the
trigger if you want the delete to take place. new would be NULL in
a delete situation ...

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2001-09-27 17:31:52 Re: Aggregate Aggravation
Previous Message Tom Lane 2001-09-27 16:25:50 Re: PARSER ERROR persists ....