Re: Trouble with NEW

Поиск
Список
Период
Сортировка
От Alan Hodgson
Тема Re: Trouble with NEW
Дата
Msg-id 1384986.gZxSggR8Un@skynet.simkin.ca
обсуждение исходный текст
Ответ на Trouble with NEW  ("Bob Pawley" <rjpawley@shaw.ca>)
Ответы Re: Trouble with NEW  ("Bob Pawley" <rjpawley@shaw.ca>)
Список pgsql-general
On Wednesday, July 18, 2012 11:07:34 AM 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” “.
>

Is that run within an insert or update trigger function? Does the table it's
on have a field named fluid_id?

> Bob

--
When the Athenians finally wanted not to give to society but for society to
give to them, when the freedom they wished for most was freedom from
responsibility, then Athens ceased to be free and was never free again.” --
Edward Gibbon


В списке pgsql-general по дате отправления:

Предыдущее
От: Rob Sargent
Дата:
Сообщение: Re: Trouble with NEW
Следующее
От: "Bob Pawley"
Дата:
Сообщение: Re: Trouble with NEW