Re: Trigger problem 2

From: Richard Huxton <dev(at)archonet(dot)com>
To: Jamie Deppeler <jamie(at)doitonce(dot)net(dot)au>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Trigger problem 2
Date: 2004-12-01 09:10:46
Message-ID: 41AD8A96.2000805@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jamie Deppeler wrote:
>
> UPDATE wip.resource
> set "name" = datarecord.borname
> where wip.resource."primary" = OLD."primary";
>
>
> get the following error
>
> Error: record "old" is not yet assigned

If called from an INSERT then OLD is undefined, since there is no old
version of the row.

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Chris Green 2004-12-01 09:33:18 Re: [HACKERS] Adding Reply-To: <listname> to Lists configuration ...
Previous Message Najib Abi Fadel 2004-12-01 08:45:33 Re: granting privileges