Re: Trouble with NEW - Mailing list pgsql-general

From Rob Sargent
Subject Re: Trouble with NEW
Date
Msg-id 5006FC74.3040907@gmail.com
Whole thread Raw
In response to Trouble with NEW  ("Bob Pawley" <rjpawley@shaw.ca>)
List 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?

pgsql-general by date:

Previous
From: "Bob Pawley"
Date:
Subject: Trouble with NEW
Next
From: Alan Hodgson
Date:
Subject: Re: Trouble with NEW