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

Re: basic trigger using OLD not working?

From: Edmund Bacon <ebacon-xlii(at)onesystem(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: basic trigger using OLD not working?
Date: 2005-02-24 23:13:01
Message-ID: m3psypk0w2.fsf@elb_lx.onesystem.ca (view raw or flat)
Thread:
Lists: pgsql-general
rick(dot)casey(at)colorado(dot)edu (Rick Casey) writes:


> CREATE OR REPLACE FUNCTION logPedigreesDel() RETURNS TRIGGER AS '
> begin
>     RAISE EXCEPTION ''OLD.famindid = '', OLD.famindid;

      RAISE EXCEPTION ''OLD.famindid = %'', OLD.famindid;
                                       ^
>     return OLD;
> end;
> ' LANGUAGE plpgsql;
>

-- 
Remove -42 for email

In response to

pgsql-general by date

Next:From: Postgres CoderDate: 2005-02-24 23:46:28
Subject: Which query is less expensive / faster?
Previous:From: Ron MayerDate: 2005-02-24 23:08:34
Subject: Re: [PATCHES] A way to let Vacuum warn if FSM settings are low.

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