Skip site navigation (1) Skip section navigation (2)

Re: Re: can't delete record

From: lyonj(at)EM-Systems(dot)com
To: Cedar Cox <cedarc(at)visionforisrael(dot)com>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Re: can't delete record
Date: 2001-03-07 14:49:35
Message-ID: 3AA64A7F.B59028F9@EM-Systems.com (view raw or flat)
Thread:
Lists: pgsql-interfaces
I might have read that in Bruce's book.  Any serious PostgreSQL developer
should read it cover to cover!

I agree, plpgsql should return an error if you try to access NEW when
TG_OP='DELETE'.

Jeffrey


Cedar Cox wrote:

> Bingo!  That was it.. Thank you.
>
> BTW, is this behavior documented (no error message)?  It should be.
> Even better, make plpgsql a little nicer ;)
>
> -Cedar
>
> On Wed, 7 Mar 2001, Jeffrey Lyon wrote:
>
> > Do you have a trigger applied against this record on DELETE?  If so, are
> > you returning NEW or OLD?  I think that you need to return NEW on an
> > UPDATE or INSERT and an OLD on DELETE.
> >
> > Jeffrey
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly


In response to

pgsql-interfaces by date

Next:From: Cedar CoxDate: 2001-03-07 15:05:41
Subject: Re: Re: can't delete record
Previous:From: DI Irina HasenöhrlDate: 2001-03-07 10:18:15
Subject: Postgresql and MSACCESS

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group