pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dan Langille <dan@langille.org>
To: Michael Zouroudis <mzouroudis@idealcorp.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: serious issues with TG_OP
Date: Fri, 23 Aug 2002 17:05:07 -0400
Message-ID: <3D666B43.22102.7088AB99@localhost> (raw)
In-Reply-To: <3D65BCE0.2070400@idealcorp.com>

On 23 Aug 2002 at 0:41, Michael Zouroudis wrote:

> CREATE FUNCTION pearl() RETURNS OPAQUE AS '
> 
> DECLARE
> 
>   t test%ROWTYPE;
>   o one%ROWTYPE;
>   x    text;
>   y    text;
>   z    text;
>   a    text;
>   xx   text;
>   yy   text;
>   zz   text;
>   aa   text;
> 
> BEGIN
> 
> 
>   x  := new.fake;
>   y  := new.below;
>   z  := new.above;
>   a  := new.behind;

Your problem is in the above lines.  My bet: NEW will not exist upon 
deletes.

> psql:script:9: NOTICE:  INSERT xx is equal to  ddd
> INSERT 215042 1
> psql:script:13: NOTICE:  UPDATE xx is equal to  hello
> UPDATE 1
> psql:script:17: NOTICE:  Error occurred while executing PL/pgSQL function pearl
> psql:script:17: NOTICE:  line 21 at assignment
> psql:script:17: ERROR:  record new is unassigned yet
> -------------------------------------------------------------------------------
> 
> the function is printing out a value for x (hello), but not deleting it.  
> i am lost on how to correctly assign a value for the delete. 

Do you know now?
-- 
Dan Langille
I'm looking for a computer job:
http://www.freebsddiary.org/dan_langille.php




view thread (2+ messages)

Message-ID: <3D666B43.22102.7088AB99@localhost>
Permalink:  ../3D666B43.22102.7088AB99@localhost/
Also on:    postgresql.org/message-id/3D666B43.22102.7088AB99@localhost

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: dan@langille.org, mzouroudis@idealcorp.com
  Subject: Re: serious issues with TG_OP
  In-Reply-To: <3D666B43.22102.7088AB99@localhost>
  References: <3D65BCE0.2070400@idealcorp.com> <3D666B43.22102.7088AB99@localhost>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox