Trouble with NEW

From: "Bob Pawley" <rjpawley(at)shaw(dot)ca>
To: "Postgresql" <pgsql-general(at)postgresql(dot)org>
Subject: Trouble with NEW
Date: 2012-07-18 18:07:34
Message-ID: F5F67B2F97124FCEAFF12454B4E5B6B8@BobPC
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rob Sargent 2012-07-18 18:12:04 Re: Trouble with NEW
Previous Message Alban Hertroys 2012-07-18 17:48:32 Re: Chicken/egg problem with range types