Create Rule - Mailing list pgsql-general

From Fernando San Martín Woerner
Subject Create Rule
Date
Msg-id EEECJAMPNEKNFFFDPKFEEEPICBAA.snmartin@galilea.cl
Whole thread Raw
Responses Re: Create Rule
List pgsql-general
i'm trying to do this

CREATE RULE borra_presupuesto AS ON DELETE TO presupuesto DO INSTEAD
(UPDATE presupuesto SET en_uso = 'False' WHERE cod_presupuesto =
old.cod_presupuesto;
UPDATE detalle_presupuesto SET en_uso = 'False' WHERE cod_presupuesto =
old.cod_presupuesto);

but i get this error:

ERROR:  parser: parse error at or near ""

any tips?

thanks

Fernando San Martín Woerner
Jefe Depto. Informática
Galilea S.A.
counter.li.org Linux User #216550
----------------------------------------
Una era construye ciudades, una hora las destruye.

Séneca


pgsql-general by date:

Previous
From: wsheldah@lexmark.com
Date:
Subject: Re: Idle in transaction ????
Next
From: Brent Verner
Date:
Subject: Re: UPDATE w/ subselect doing locking