Re: Trouble with NEW

From: Rob Sargent <robjsargent(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Trouble with NEW
Date: 2012-07-18 18:12:04
Message-ID: 5006FC74.3040907@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 07/18/2012 12:07 PM, Bob Pawley wrote:
> Hi
> I would appreciate some fresh eyes on this expression -
> update p_id.fluids
> set fluid_short =
> (select shape.text
> from shape, num_search
> where (select st_within(shape.wkb_geometry,
> st_geometryn(num_search.the_geom4, 1)) = 'true')
> and text !~ '[0-9]')
> where p_id.fluids.fluid_id = NEW.fluid_id;
> I receive an error ”record “new” has no field “fluid_id” “.
> Bob

Are you in a trigger?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alan Hodgson 2012-07-18 18:15:38 Re: Trouble with NEW
Previous Message Bob Pawley 2012-07-18 18:07:34 Trouble with NEW