Re: TRIGGER with WHEN clause - Mailing list pgsql-hackers

From Albe Laurenz
Subject Re: TRIGGER with WHEN clause
Date
Msg-id D960CB61B694CF459DCFB4B0128514C203938039@exadv11.host.magwien.gv.at
Whole thread Raw
In response to Re: TRIGGER with WHEN clause  (KaiGai Kohei <kaigai@kaigai.gr.jp>)
Responses Re: TRIGGER with WHEN clause
List pgsql-hackers
KaiGai Kohei wrote:
> I'm uncertain how Oracle handles the condition on the statement
> triggers. But it seems to me WHEN clause on the statement triggers
> are nonsense.

SQL> CREATE TRIGGER dummy BEFORE DELETE ON employees WHEN (1 = 1) 2  BEGIN 3  END; 4  /
CREATE TRIGGER dummy BEFORE DELETE ON employees WHEN (1 = 1)                                               *
ERROR at line 1:
ORA-04077: WHEN clause cannot be used with table level triggers

Yours,
Laurenz Albe


pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: Summary and Plan for Hot Standby
Next
From: Boszormenyi Zoltan
Date:
Subject: ECPG patch 1, dynamic cursorname