Re: Re-write rules on views

From: Rip <rip(at)onlineinfo(dot)net>
To: pgsql-general(at)postgresql(dot)org
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Subject: Re: Re-write rules on views
Date: 2002-02-27 23:45:12
Message-ID: 5.1.0.14.2.20020227183954.009f5d70@mail.onlineinfo.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Thanx for the help. Actually I discovered the real problem.... it's a php
bug. when php hits the ';' in the multiple action it assumes the query is
over and starts a new one. I'll post this bug report to php and back to the
list.

At 06:28 PM 2/27/02 -0500, you wrote:
>Tom Lane wrote:
> > Rip <rip(at)onlineinfo(dot)net> writes:
> > > The docs seem slim in this department.. what is the proper
> > > syntax for an update to a view with multiple tables?
> >
> > I think you are looking for a multiple-action rule. Just put square
> > brackets, or parens if you prefer, around the list of action queries.
>
>I recommend parens. Brackets are going away in 7.3. TODO has:
>
> * Remove brackets as multi-statement rule grouping, must use parens
>
>and I will attack that easy one soon. :-)
>
>--
> Bruce Momjian | http://candle.pha.pa.us
> pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
> + If your life is a hard drive, | 830 Blythe Avenue
> + Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Hiroshi Inoue 2002-02-28 00:01:44 Re: eWeek Poll: Which database is most critical to your
Previous Message Benjamin Franks 2002-02-27 23:41:24 COPY FROM and TABLE LOCK question