The Rule does not working.

From: "King King" <kingking(at)outgun(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: The Rule does not working.
Date: 2002-06-28 02:12:36
Message-ID: afggmd$en759@imsp212.netvigator.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dear All,

Please help. I create below Deleted Rule in Postgres 7.1.3. But it does not
working. Please Help. That mean when I delete the record but it does not
update the table by the update command.

CREATE RULE inv_so_delete1 AS ON DELETE TO inv_detail DO UPDATE so_info SET
l_invoice = 'f'::bool WHERE ((NOT (EXISTS (SELECT inv_detail.c_sorder FROM
inv_detail WHERE (inv_detail.c_sorder = old.c_sorder)))) AND
(so_info.c_sorder = old.c_sorder));

Thanks

King King

Browse pgsql-general by date

  From Date Subject
Next Message Curt Sampson 2002-06-28 02:17:28 Re: Shared Memory Sizing
Previous Message Justin Clift 2002-06-28 01:22:26 Re: transfer data from oracle to postgres