Re: Update and Insert in a View Insert Rule

Поиск
Список
Период
Сортировка
От Tom Jenkins
Тема Re: Update and Insert in a View Insert Rule
Дата
Msg-id 1022069646.26054.14.camel@asimov
обсуждение исходный текст
Ответ на Re: Update and Insert in a View Insert Rule  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Список pgsql-general
On Tue, 2002-05-21 at 18:19, Stephan Szabo wrote:
> On 21 May 2002, Tom Jenkins wrote:
> >
> > unfortunately this gives me an error when I attempt to load the rule I
> > get:
> > ERROR:  NEW used in non-rule query
> >
> > I don't understand why this wouldn't work.  Unless it has something to
> > do with NEW getting "lost" in the update call?  should i move the update
> > out to a function and calling it from the rule?
>
> I think you forgot to use the () around the multiple actions.
> It should probably be:
> DO INSTEAD (
>  ...
> );
>

AAAARRRRRGGGGGGHHHHHHH!!!
*sigh* up that was the problem.  Funny how you can stare at something
and not actually see it.  Thanks


--

Tom Jenkins
Development InfoStructure
http://www.devis.com



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

Предыдущее
От: "Len Morgan"
Дата:
Сообщение: Collation Order Change
Следующее
От: "Wm. G. Urquhart"
Дата:
Сообщение: Re: I need minimum specs for running PostgreSQL