Re: basic trigger using OLD not working?

From: Ragnar Hafstað <gnari(at)simnet(dot)is>
To: Rick(dot)Casey(at)colorado(dot)edu
Cc: Ian Harding <iharding(at)tpchd(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Re: basic trigger using OLD not working?
Date: 2005-02-26 14:09:14
Message-ID: 1109426954.10941.8.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 2005-02-25 at 17:14 -0700, Rick(dot)Casey(at)colorado(dot)edu wrote:
> Yes, thank you, I corrected my function from statement level to row level.
> This did get rid of the error message. However, I still get no output from
> an OLD variable that should contain data: see the test variable in the
> simple case below.
> ...
> > RAISE EXCEPTION ''OLD.famindid = '', test;

as has already been pointed out, you need to put a % marker
in your format string.

RAISE EXCEPTION ''OLD.famindid = %'', test;

gnari

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tatsuo Ishii 2005-02-26 14:41:25 http://www.postgresql.org/community/lists/
Previous Message josue 2005-02-26 14:04:31 Re: row numbering